C# Class Opc.Ua.Bindings.ArraySegmentStream

Provides stream access to a sequence of buffers.
Inheritance: Stream
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Méthodes publiques

Méthode Description
ArraySegmentStream ( BufferCollection buffers ) : System

Attaches the stream to a set of buffers

ArraySegmentStream ( BufferManager bufferManager, int bufferSize, int start, int count ) : System

Creates a writeable stream that creates buffers as necessary.

Flush ( ) : void
GetBuffers ( string owner ) : BufferCollection

Returns ownership of the buffers stored in the stream.

Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Private Methods

Méthode Description
GetAbsoluteLength ( ) : int

Returns the total length in all buffers.

GetAbsolutePosition ( ) : int

Returns the current position.

GetBufferCount ( int index ) : int

Returns the number of bytes used in the buffer.

SetCurrentBuffer ( int index ) : void

Sets the current buffer.

Method Details

ArraySegmentStream() public méthode

Attaches the stream to a set of buffers
public ArraySegmentStream ( BufferCollection buffers ) : System
buffers BufferCollection The buffers.
Résultat System

ArraySegmentStream() public méthode

Creates a writeable stream that creates buffers as necessary.
public ArraySegmentStream ( BufferManager bufferManager, int bufferSize, int start, int count ) : System
bufferManager BufferManager The buffer manager.
bufferSize int Size of the buffer.
start int The start.
count int The count.
Résultat System

Flush() public méthode

public Flush ( ) : void
Résultat void

GetBuffers() public méthode

Returns ownership of the buffers stored in the stream.
public GetBuffers ( string owner ) : BufferCollection
owner string The owner.
Résultat BufferCollection

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void