Class brl.datastream.DataStream - leonard-thieu/monkey GitHub Wiki

A datastream allows you to read and write data to and from a databuffer in a stream-like way.

Extends

  • Stream

Constructors

Properties

Detailed Discussion

A datastream allows you to read and write data to and from a databuffer in a stream-like way.

Constructor Documentation

Method New ( data:DataBuffer, offset:Int )

Creates a datastream that wraps the specified databuffer.

The wrapped range of data begins at byte address offset and extends to the end of the buffer. Data outside this range will not be modified by any stream operations.

Method New ( data:DataBuffer, offset:Int, length:Int )

Creates a datastream that wraps the specified databuffer.

The wrapped range of data begins at byte address offset and extends for length bytes. Data outside of this range will not be modified by any stream operations.

Property Documentation

Method Data : DataBuffer ()

Returns the databuffer object wrapped by this datastream.

Method Length : Int ()

Returns the length of the data in the databuffer object wrapped by this datastream.

Method Offset : Int ()

Returns the start offset of the data in the databuffer object wrapped by this datastream.

⚠️ **GitHub.com Fallback** ⚠️