Lines Matching refs:ptrA
45 struct bbs_Int16Arr* ptrA )
47 ptrA->arrPtrE = NULL;
48 ptrA->sizeE = 0;
49 ptrA->allocatedSizeE = 0;
50 ptrA->mspE = NULL;
56 struct bbs_Int16Arr* ptrA )
58 bbs_MemSeg_free( cpA, ptrA->mspE, ptrA->arrPtrE );
59 ptrA->arrPtrE = NULL;
60 ptrA->mspE = NULL;
61 ptrA->sizeE = 0;
62 ptrA->allocatedSizeE = 0;
76 struct bbs_Int16Arr* ptrA,
80 if( ptrA->allocatedSizeE < srcPtrA->sizeE )
87 bbs_Int16Arr_size( cpA, ptrA, srcPtrA->sizeE );
88 bbs_memcpy16( ptrA->arrPtrE, srcPtrA->arrPtrE, srcPtrA->sizeE * bbs_SIZEOF16( int16 ) );
94 const struct bbs_Int16Arr* ptrA,
98 const int16* ptr1L = ptrA->arrPtrE;
100 if( ptrA->sizeE != srcPtrA->sizeE ) return FALSE;
101 for( iL = ptrA->sizeE; iL > 0; iL-- )
119 const struct bbs_Int16Arr* ptrA,
136 struct bbs_Int16Arr* ptrA,
141 if( ptrA->sizeE == sizeA ) return;
142 if( ptrA->arrPtrE != 0 )
144 bbs_Int16Arr_size( cpA, ptrA, sizeA );
148 ptrA->arrPtrE = bbs_MemSeg_alloc( cpA, mspA, sizeA * bbs_SIZEOF16( int16 ) );
150 ptrA->allocatedSizeE = sizeA;
151 ptrA->sizeE = sizeA;
152 if( !mspA->sharedE ) ptrA->mspE = mspA;
159 struct bbs_Int16Arr* ptrA,
168 /* set members of ptrA */
169 ptrA->mspE = 0; /* no own allocated memory */
170 ptrA->sizeE = sizeA;
171 ptrA->allocatedSizeE = ptrA->sizeE;
172 ptrA->arrPtrE = allocPtrA->arrPtrE;
183 while( ( ( ( uint64 ) ptrA->arrPtrE ) & ( alignBytesA - 1 ) ) )
185 ptrA->arrPtrE++;
188 while( ( ( ( uintptr_t ) ptrA->arrPtrE ) & ( alignBytesA - 1 ) ) )
190 ptrA->arrPtrE++;
199 struct bbs_Int16Arr* ptrA,
202 if( ptrA->allocatedSizeE < sizeA )
206 ptrA->allocatedSizeE );
209 ptrA->sizeE = sizeA;
223 const struct bbs_Int16Arr* ptrA )
225 return bbs_SIZEOF16( uint32 ) + bbs_SIZEOF16( ptrA->sizeE ) +
226 ptrA->sizeE * bbs_SIZEOF16( int16 );
232 const struct bbs_Int16Arr* ptrA,
235 uint32 memSizeL = bbs_Int16Arr_memSize( cpA, ptrA );
237 memPtrA += bbs_memWrite32( &ptrA->sizeE, memPtrA );
238 memPtrA += bbs_memWrite16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE, memPtrA );
245 struct bbs_Int16Arr* ptrA,
253 bbs_Int16Arr_create( cpA, ptrA, sizeL, mspA );
254 memPtrA += bbs_memRead16Arr( cpA, ptrA->arrPtrE, ptrA->sizeE, memPtrA );
256 if( memSizeL != bbs_Int16Arr_memSize( cpA, ptrA ) )
277 struct bbs_Int16Arr* ptrA,
281 for( iL = 0; iL < ptrA->sizeE; iL++ )
283 ptrA->arrPtrE[ iL ] = valA;