| 688 | ImVector<char> Buf; |
| 689 | |
| 690 | void clear() { Buf.clear(); } |
| 691 | bool empty() const { return Buf.Size == 0; } |
| 692 | int size() const { return Buf.Size; } |
| 693 | T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } |
no outgoing calls
no test coverage detected