Lines Matching refs:ptrA
41 struct bbs_Int8Arr* ptrA ) in bbs_Int8Arr_init() argument
43 ptrA->arrPtrE = NULL; in bbs_Int8Arr_init()
44 ptrA->sizeE = 0; in bbs_Int8Arr_init()
45 ptrA->allocatedSizeE = 0; in bbs_Int8Arr_init()
46 ptrA->mspE = NULL; in bbs_Int8Arr_init()
52 struct bbs_Int8Arr* ptrA ) in bbs_Int8Arr_exit() argument
54 bbs_MemSeg_free( cpA, ptrA->mspE, ptrA->arrPtrE ); in bbs_Int8Arr_exit()
55 ptrA->arrPtrE = NULL; in bbs_Int8Arr_exit()
56 ptrA->mspE = NULL; in bbs_Int8Arr_exit()
57 ptrA->sizeE = 0; in bbs_Int8Arr_exit()
58 ptrA->allocatedSizeE = 0; in bbs_Int8Arr_exit()
72 struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_copy() argument
76 if( ptrA->allocatedSizeE < srcPtrA->allocatedSizeE ) in bbs_Int8Arr_copy()
83 bbs_Int8Arr_size( cpA, ptrA, srcPtrA->sizeE ); in bbs_Int8Arr_copy()
84 bbs_memcpy16( ptrA->arrPtrE, srcPtrA->arrPtrE, srcPtrA->sizeE >> 1 ); in bbs_Int8Arr_copy()
90 const struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_equal() argument
94 const int8* ptr1L = ptrA->arrPtrE; in bbs_Int8Arr_equal()
96 if( ptrA->sizeE != srcPtrA->sizeE ) return FALSE; in bbs_Int8Arr_equal()
97 for( iL = ptrA->sizeE; iL > 0; iL-- ) in bbs_Int8Arr_equal()
115 const struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_heapSize() argument
132 struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_create() argument
137 if( ptrA->sizeE == sizeA ) return; in bbs_Int8Arr_create()
138 if( ptrA->arrPtrE != 0 ) in bbs_Int8Arr_create()
140 bbs_Int8Arr_size( cpA, ptrA, sizeA ); in bbs_Int8Arr_create()
148 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeL >> 1 ); in bbs_Int8Arr_create()
150 ptrA->allocatedSizeE = sizeL; in bbs_Int8Arr_create()
152 ptrA->sizeE = sizeA; in bbs_Int8Arr_create()
153 if( !mspA->sharedE ) ptrA->mspE = mspA; in bbs_Int8Arr_create()
160 struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_size() argument
163 if( ptrA->allocatedSizeE < sizeA ) in bbs_Int8Arr_size()
167 ptrA->allocatedSizeE ); in bbs_Int8Arr_size()
170 ptrA->sizeE = sizeA; in bbs_Int8Arr_size()
184 const struct bbs_Int8Arr* ptrA ) in bbs_Int8Arr_memSize() argument
186 return bbs_SIZEOF16( uint32 ) + bbs_SIZEOF16( ptrA->sizeE ) + in bbs_Int8Arr_memSize()
187 ptrA->sizeE / 2; /* int8 = 0.5 word size*/ in bbs_Int8Arr_memSize()
193 const struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_memWrite() argument
196 uint32 memSizeL = bbs_Int8Arr_memSize( cpA, ptrA ); in bbs_Int8Arr_memWrite()
198 memPtrA += bbs_memWrite32( &ptrA->sizeE, memPtrA ); in bbs_Int8Arr_memWrite()
199 memPtrA += bbs_memWrite16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE / 2, memPtrA ); in bbs_Int8Arr_memWrite()
207 struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_memRead() argument
215 bbs_Int8Arr_create( cpA, ptrA, sizeL, mspA ); in bbs_Int8Arr_memRead()
216 memPtrA += bbs_memRead16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE / 2, memPtrA ); in bbs_Int8Arr_memRead()
218 if( memSizeL != bbs_Int8Arr_memSize( cpA, ptrA ) ) in bbs_Int8Arr_memRead()
238 struct bbs_Int8Arr* ptrA, in bbs_Int8Arr_fill() argument
242 for( iL = 0; iL < ptrA->sizeE; iL++ ) in bbs_Int8Arr_fill()
244 ptrA->arrPtrE[ iL ] = valA; in bbs_Int8Arr_fill()