C# Class Opc.Ua.Bindings.ArraySegmentStream

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

Public Methods

Method 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

Method 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 method

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

ArraySegmentStream() public method

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.
return System

Flush() public method

public Flush ( ) : void
return void

GetBuffers() public method

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

Read() public method

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

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

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