Allocate a number of bytes, without initializing them, and return the slice to be filled in. The slice reference is temporary, and valid until the next allocation.
Effectively empties the data, but preserves the storage for reuse. Same as setting length to 0.
Get a reference to the buffer. Ownership of the buffer is passed to the caller (Appender will not deallocate it after this call).
As with get, but ownership is preserved. The return value is valid until the next allocation, or until Appender is destroyed.
Ensure we can append at least len more bytes before allocating.
Put elements. Accepts any number of items (and will allocate at most once per call). Items can be of the element type (I), or arrays.
Unsafe. Use together with preallocate().
Set the length (up to the current capacity).