| 698 | T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } |
| 699 | int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } |
| 700 | T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } |
| 701 | void swap(ImChunkStream<T>& rhs) { rhs.Buf.swap(Buf); } |
| 702 | |
| 703 | }; |
no outgoing calls
no test coverage detected