Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kMemory_Attach ( kMemory  memory,
void *  buffer,
kSize  position,
kSize  length,
kSize  capacity 
)

Attaches the memory stream to an external, fixed-capacity buffer.

Parameters
memorykMemory object.
bufferData buffer.
positionCurrent read/write position, relative to start of buffer.
lengthLength of valid data contained in the buffer, in bytes.
capacityTotal size of the buffer, in bytes.
Returns
Operation status.