C# Class BACnet.Core.MultiBufferStream

Inheritance: Stream
Datei anzeigen Open project: LorenVS/bacstack

Public Methods

Method Description
Flush ( ) : void

Flushes the stream

MultiBufferStream ( List buffers ) : System

Constructs a new multi buffer stream instance

Read ( byte buffer, int offset, int count ) : int

Reads from the stream

Seek ( long offset, SeekOrigin origin ) : long

Seeks to a position within the stream

SetLength ( long value ) : void

Sets the length of the stream

Write ( byte buffer, int offset, int count ) : void

Writes to the stream

Private Methods

Method Description
_nextBuffer ( ) : bool

Advances to the next buffer

Method Details

Flush() public method

Flushes the stream
public Flush ( ) : void
return void

MultiBufferStream() public method

Constructs a new multi buffer stream instance
public MultiBufferStream ( List buffers ) : System
buffers List
return System

Read() public method

Reads from the stream
public Read ( byte buffer, int offset, int count ) : int
buffer byte The buffer to read into
offset int The offset to read into
count int The number of bytes to read
return int

Seek() public method

Seeks to a position within the stream
public Seek ( long offset, SeekOrigin origin ) : long
offset long The offset to seek to
origin SeekOrigin The origin of the offset
return long

SetLength() public method

Sets the length of the stream
public SetLength ( long value ) : void
value long The new length of the stream
return void

Write() public method

Writes to the stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte The buffer containing the bytes to write
offset int The offset of the bytes to write
count int The number of bytes to write
return void