Zen API

- Home
- Topics
- Types
- Files

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

  memory | kMemory object.
  buffer | Data buffer.
  position | Current read/write position, relative to start of buffer.
  length | Length of valid data contained in the buffer, in bytes.
  capacity | Total size of the buffer, in bytes.

Returns
  Operation status.