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

List of all members.

Function List

  close
  openBase64
  openDeflate

Function Documentation

Detach the target stream. (This only detaches the target from the formatter; it does not also close the target stream).


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

Open a base 64 formatted stream for reading (i.e. decode bytes from base64).


function openBase64 ( MOAIStreamReader self, MOAIStream target )
Parameters:
self ( MOAIStreamReader )
target ( MOAIStream )
Returns:
success ( boolean )

Open a 'deflate' formatted stream for reading (i.e. decompress bytes using the 'deflate' algorithm).


function openDeflate ( MOAIStreamReader self, MOAIStream target [, number windowBits ] )
Parameters:
self ( MOAIStreamReader )
target ( MOAIStream )
windowBits ( number ) Optional. The window bits used in the DEFLATE algorithm.
Returns:
success ( boolean )