C# Class BACnet.Core.MultiBufferStream

Inheritance: Stream
Afficher le fichier Open project: LorenVS/bacstack

Méthodes publiques

Méthode 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

Méthode Description
_nextBuffer ( ) : bool

Advances to the next buffer

Method Details

Flush() public méthode

Flushes the stream
public Flush ( ) : void
Résultat void

MultiBufferStream() public méthode

Constructs a new multi buffer stream instance
public MultiBufferStream ( List buffers ) : System
buffers List
Résultat System

Read() public méthode

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
Résultat int

Seek() public méthode

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
Résultat long

SetLength() public méthode

Sets the length of the stream
public SetLength ( long value ) : void
value long The new length of the stream
Résultat void

Write() public méthode

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
Résultat void