Lines Matching refs:ptrA
41 struct bbs_Int16Arr* ptrA )
43 ptrA->arrPtrE = NULL;
44 ptrA->sizeE = 0;
45 ptrA->allocatedSizeE = 0;
46 ptrA->mspE = NULL;
52 struct bbs_Int16Arr* ptrA )
54 bbs_MemSeg_free( cpA, ptrA->mspE, ptrA->arrPtrE );
55 ptrA->arrPtrE = NULL;
56 ptrA->mspE = NULL;
57 ptrA->sizeE = 0;
58 ptrA->allocatedSizeE = 0;
72 struct bbs_Int16Arr* ptrA,
76 if( ptrA->allocatedSizeE < srcPtrA->sizeE )
83 bbs_Int16Arr_size( cpA, ptrA, srcPtrA->sizeE );
84 bbs_memcpy16( ptrA->arrPtrE, srcPtrA->arrPtrE, srcPtrA->sizeE * bbs_SIZEOF16( int16 ) );
90 const struct bbs_Int16Arr* ptrA,
94 const int16* ptr1L = ptrA->arrPtrE;
96 if( ptrA->sizeE != srcPtrA->sizeE ) return FALSE;
97 for( iL = ptrA->sizeE; iL > 0; iL-- )
115 const struct bbs_Int16Arr* ptrA,
132 struct bbs_Int16Arr* ptrA,
137 if( ptrA->sizeE == sizeA ) return;
138 if( ptrA->arrPtrE != 0 )
140 bbs_Int16Arr_size( cpA, ptrA, sizeA );
144 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( int16 ) );
146 ptrA->allocatedSizeE = sizeA;
147 ptrA->sizeE = sizeA;
148 if( !mspA->sharedE ) ptrA->mspE = mspA;
155 struct bbs_Int16Arr* ptrA,
164 /* set members of ptrA */
165 ptrA->mspE = 0; /* no own allocated memory */
166 ptrA->sizeE = sizeA;
167 ptrA->allocatedSizeE = ptrA->sizeE;
168 ptrA->arrPtrE = allocPtrA->arrPtrE;
179 while( ( ( ( uint64 ) ptrA->arrPtrE ) & ( alignBytesA - 1 ) ) )
181 ptrA->arrPtrE++;
184 while( ( ( ( uint32 ) ptrA->arrPtrE ) & ( alignBytesA - 1 ) ) )
186 ptrA->arrPtrE++;
195 struct bbs_Int16Arr* ptrA,
198 if( ptrA->allocatedSizeE < sizeA )
202 ptrA->allocatedSizeE );
205 ptrA->sizeE = sizeA;
219 const struct bbs_Int16Arr* ptrA )
221 return bbs_SIZEOF16( uint32 ) + bbs_SIZEOF16( ptrA->sizeE ) +
222 ptrA->sizeE * bbs_SIZEOF16( int16 );
228 const struct bbs_Int16Arr* ptrA,
231 uint32 memSizeL = bbs_Int16Arr_memSize( cpA, ptrA );
233 memPtrA += bbs_memWrite32( &ptrA->sizeE, memPtrA );
234 memPtrA += bbs_memWrite16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE, memPtrA );
241 struct bbs_Int16Arr* ptrA,
249 bbs_Int16Arr_create( cpA, ptrA, sizeL, mspA );
250 memPtrA += bbs_memRead16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE, memPtrA );
252 if( memSizeL != bbs_Int16Arr_memSize( cpA, ptrA ) )
273 struct bbs_Int16Arr* ptrA,
277 for( iL = 0; iL < ptrA->sizeE; iL++ )
279 ptrA->arrPtrE[ iL ] = valA;