14 const char* data,
unsigned int dataSize,
unsigned int numEntries )
15 : dataSize_( dataSize ), numEntries_( numEntries )
17 if ( numEntries == 0 )
23 memcpy(
data_, data, dataSize );
27 : dataSize_( other.dataSize_ ),
28 numEntries_( other.numEntries_ )
39 : dataSize_( *reinterpret_cast< const unsigned int * >( buf ) ),
40 numEntries_( *reinterpret_cast< const unsigned int * >(
41 buf + sizeof( unsigned int ) ) )
52 : dataSize_( 0 ), numEntries_( 0 ), individualDataSize_( 0 )
72 *
reinterpret_cast< unsigned int*
>( buf ) =
dataSize_;
73 buf +=
sizeof(
unsigned int );
74 *
reinterpret_cast< unsigned int*
>( buf ) =
numEntries_;
75 buf +=
sizeof(
unsigned int );
unsigned int size() const
const char * operator[](unsigned int index) const
unsigned int individualDataSize_
unsigned int conv2buf(char *buf) const
unsigned int dataSize() const