Home | History | Annotate | Download | only in tinyxml2

Lines Matching defs:Size

71     inline int TIXML_SNPRINTF( char* buffer, size_t size, const char* format, ... ) {

74 int result = vsnprintf_s( buffer, size, _TRUNCATE, format, va );
169 size = 0;
179 EnsureCapacity( size+1 );
180 mem[size++] = t;
185 EnsureCapacity( size+count );
186 T* ret = &mem[size];
187 size += count;
191 return mem[--size];
195 TIXMLASSERT( size >= count );
196 size -= count;
199 bool Empty() const { return size == 0; }
200 T& operator[](int i) { TIXMLASSERT( i>= 0 && i < size ); return mem[i]; }
201 const T& operator[](int i) const { TIXMLASSERT( i>= 0 && i < size ); return mem[i]; }
202 int Size() const { return size; }
213 memcpy( newMem, mem, sizeof(T)*size ); // warning: not using constructors, only works for PODs
223 int size; // number objects in use
246 template< int SIZE >
253 for( int i=0; i<blockPtrs.Size(); ++i ) {
258 virtual int ItemSize() const { return SIZE; }
290 printf( "Mempool %s watermark=%d [%dk] current=%d size=%d nAlloc=%d blocks=%d\n",
291 name, maxAllocs, maxAllocs*SIZE/1024, currentAllocs, SIZE, nAllocs, blockPtrs.Size() );
295 enum { COUNT = 1024/SIZE };
298 char mem[SIZE];
1442 If in print to memory mode, return the size
1443 of the XML file in memory. (Note the size returned
1446 int CStrSize() const { return buffer.Size(); }