A destructor is present on this object, but not explicitly documented in the source.
A postblit is present on this object, but not explicitly documented in the source.
Initialize empty buffer for writing. Must be a T.init object.
Initialize buffer as reading a slice. Must be a T.init object.
Return internal data pointer (allocated with malloc/free) stream doesn't own it anymore, the caller does instead. Can only be called if that buffer is owned is the first place.
Length of buffer.
Size of the underlying allocation, meaningful if owned.
Pointer to data (owned or borrowed). if owned, the buffer is guaranteed to be allocated with malloc/free/realloc.
Current pointer in the buffer.
If the memory is owned by MemoryFile, or borrowed.
If can only read from buffer.
This is basically an owned buffer, with capacity, optionally borrowed. The original things being that it can both be used for reading and writing.