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

List of all members.

Function List

  close
  openAdler32
  openCRC32
  openCRC32b
  openWhirlpool

Function Documentation

Flush any remaining buffered data and detach the target stream. (This only detaches the target from the formatter; it does not also close the target stream). Return the hash as a hex string.


function close ( MOAIStreamWriter self )
Parameters:
self ( MOAIStreamWriter )
Returns:
hash ( string )

Open a Adler32 hash stream for writing. (i.e. compute Adler32 hash of data while writing)


function openAdler32 ( MOAIStreamWriter self [, MOAIStream target ] )
Parameters:
self ( MOAIStreamWriter )
target ( MOAIStream ) Optional.
Returns:
success ( boolean )

Open a CRC32 hash stream for writing. (i.e. compute CRC32 hash of data while writing)


function openCRC32 ( MOAIStreamWriter self [, MOAIStream target ] )
Parameters:
self ( MOAIStreamWriter )
target ( MOAIStream ) Optional.
Returns:
success ( boolean )

Open a CRC32b hash stream for writing. (i.e. compute CRC32b hash of data while writing)


function openCRC32b ( MOAIStreamWriter self [, MOAIStream target ] )
Parameters:
self ( MOAIStreamWriter )
target ( MOAIStream ) Optional.
Returns:
success ( boolean )

Open a Whirlpool hash stream for writing. (i.e. compute Whirlpool hash of data while writing)


function openWhirlpool ( MOAIStreamWriter self [, MOAIStream target ] )
Parameters:
self ( MOAIStreamWriter )
target ( MOAIStream ) Optional.
Returns:
success ( boolean )