Lines Matching refs:itemSize
35 int itemSize; /* size of each item, should init to sizeof item */ member
39 bagCreateBag(int itemSize, int initialAllocation) { in bagCreateBag() argument
44 itemSize = (itemSize + 7) & ~7; /* fit 8 byte boundary */ in bagCreateBag()
45 theBag->items = jvmtiAllocate(initialAllocation * itemSize); in bagCreateBag()
52 theBag->itemSize = itemSize; in bagCreateBag()
59 struct bag *newBag = bagCreateBag(oldBag->itemSize, in bagDup()
63 (void)memcpy(newBag->items, oldBag->items, newBag->used * newBag->itemSize); in bagDup()
81 int itemSize = theBag->itemSize; in bagFind() local
82 char *itemsEnd = items + (itemSize * theBag->used); in bagFind()
84 for (; items < itemsEnd; items += itemSize) { in bagFind()
97 int itemSize = theBag->itemSize; in bagAdd() local
105 new_items = jvmtiAllocate(allocated * itemSize); in bagAdd()
109 (void)memcpy(new_items, items, (theBag->used) * itemSize); in bagAdd()
115 ret = ((char *)items) + (itemSize * (theBag->used)++); in bagAdd()
116 (void)memset(ret, 0, itemSize); in bagAdd()
124 int itemSize = theBag->itemSize; in bagDelete() local
126 void *tailItem = ((char *)items) + (used * itemSize); in bagDelete()
129 (void)memcpy(condemned, tailItem, itemSize); in bagDelete()
150 int itemSize = theBag->itemSize; in bagEnumerateOver() local
151 char *itemsEnd = items + (itemSize * theBag->used); in bagEnumerateOver()
153 for (; items < itemsEnd; items += itemSize) { in bagEnumerateOver()