BytesInput object for reading bytes as stream, inherited from Input


Can be created from Bytes:

Lib.Sys.IO.BytesInput.new(bytes, pos, len)

create len size BytesInput using bytes object starting from pos

bytes - Bytes object

pos - starting position

len - size


Created BytesInput object has properties:

position

The current position in the stream in bytes. read and write property.

length

length of the stream. read-only.


check base methods and properties from Input.


Examples:


bytes = Lib.Sys.IO.Bytes.alloc(10)

bytesInput = Lib.Sys.IO.BytesInput.new(bytes, 0, 5)

Created with the Personal Edition of HelpNDoc: Free EBook and documentation generator