Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIMemStream Class Reference
Inheritance diagram for MOAIMemStream:
MOAIStream MOAIStream

List of all members.

Function List

  close
  open

Function Documentation

Close the memory stream and release its buffers.


function close ( MOAIMemStream self )
Parameters:
self ( MOAIMemStream )
Returns:
nil

Create a memory stream and optionally reserve some memory and set the chunk size by which the stream will grow if additional memory is needed.


function open ( MOAIMemStream self [, number reserve, number chunkSize ] )
Parameters:
self ( MOAIMemStream )
reserve ( number ) Optional. Default value is 0.
chunkSize ( number ) Optional. Default value is MOAIMemStream.DEFAULT_CHUNK_SIZE (2048 bytes).
Returns:
success ( boolean )