GetByteChunk function

Gets a byte chunk from current StreamReader offset by copying buffer_len bytes in to buffer data.

Syntax
bool UltraLite_StreamReader_iface::GetByteChunk(
  ul_byte * data,
  size_t buffer_len,
  size_t * len_retn,
  bool * morebytes
)
Parameters
  • data   A pointer to an array of bytes.

  • buffer_len   The length of the buffer, or array. The buffer_len must be greater than or equal to 0.

  • len_retn   An output parameter. The length returned.

  • morebytes   An output parameter. True if there are more bytes to read.

Remarks

The bytes are read from where the last read left off unless you use SetReadPosition function.