#include <evo/list.h>
template<class T, class TSize = SizeT>
struct evo::List< T, TSize >::Edit
Edit buffer for advEdit().
- This holds buffer state during an edit operation
- This cleans up if edit is incomplete so will not leak memory
- See advEdit()
◆ Edit()
◆ ~Edit()
Destructor, frees buffer if needed.
◆ clear()
Clear data and free buffer.
◆ write() [1/2]
Write (copy) data from source.
- This appends to end of edit data (ptr+size) and updates size member
- Caution: This assumes destination items are uninitialized (only matters for non-POD types)
- Caution: Results are undefined if copying from buffer being edited in-place (advEdit() returned false)
- Caution: Results are undefined if writing after end of buffer
- Parameters
-
src | Source to copy from |
start | Start position to copy from |
count | Item count to copy, ALL for all |
- Returns
- Actual item count written, 0 for none
◆ write() [2/2]
Write (copy) data from buffer.
- This appends to end of edit data (ptr+size) and updates size member
- Caution: This assumes destination items are uninitialized (only matters for non-POD types)
- Caution: Results are undefined if copying from buffer being edited in-place (advEdit() returned false)
- Caution: Results are undefined if writing after end of buffer
- Parameters
-
data | Data pointer to copy from |
count | Item count to copy |
- Returns
- Actual item count written (same as count)
◆ header
Internal buffer data, do not modify.
◆ ptr
Data pointer, use to write to buffer.
◆ size
Data size, update after write.
The documentation for this struct was generated from the following file: