BoundIncomingStream

Overview

Implements an incoming stream for specified connection (Connection Class) and provides possibility to read specified number of first bytes in the stream.

Location


 

constructor

 

constructor(connection: Connection; size: Int32)

 

BoundIncomingStream(Connection connection, Int32 size)

 

Sub New(connection As Connection, size As Int32)

Parameters:

  • connection:
  • size:

CanRead

Gets a value indicating whether the current stream supports reading.

 

property CanRead: Boolean read;

 

Boolean CanRead { get; }

 

ReadOnly Property CanRead() As Boolean

CanSeek

Gets a value indicating whether the current stream supports seeking.

 

property CanSeek: Boolean read;

 

Boolean CanSeek { get; }

 

ReadOnly Property CanSeek() As Boolean

CanWrite

Gets a value indicating whether the current stream supports writing.

 

property CanWrite: Boolean read;

 

Boolean CanWrite { get; }

 

ReadOnly Property CanWrite() As Boolean

Close

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

 

method Close

 

void Close()

 

Sub Close()

Flush

Clears all buffers for this stream.

 

method Flush

 

void Flush()

 

Sub Flush()

Length

Gets the specified in the constructor length to read in bytes.

 

property Length: Int64 read;

 

Int64 Length { get; }

 

ReadOnly Property Length() As Int64

Position

Gets the position within the current stream.

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

Property Position() As Int64

Read

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

 

method Read(buffer: array of Byte; offset: Int32; count: Int32): Int32

 

Int32 Read(Byte[] buffer, Int32 offset, Int32 count)

 

Function Read(buffer As Byte(), offset As Int32, count As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • count:

Seek

The class does not support seeking.

 

method Seek(offset: Int64; origin: SeekOrigin): Int64

 

Int64 Seek(Int64 offset, SeekOrigin origin)

 

Function Seek(offset As Int64, origin As SeekOrigin) As Int64

Parameters:

  • offset:
  • origin:

SetLength

The class does not support SetLength.

 

method SetLength(length: Int64)

 

void SetLength(Int64 length)

 

Sub SetLength(length As Int64)

Parameters:

  • length:

Write

The class does not support the write, it is read-only stream.

 

method Write(buffer: array of Byte; offset: Int32; count: Int32)

 

void Write(Byte[] buffer, Int32 offset, Int32 count)

 

Sub Write(buffer As Byte(), offset As Int32, count As Int32)

Parameters:

  • buffer:
  • offset:
  • count:

 

CanRead

Gets a value indicating whether the current stream supports reading.

 

property CanRead: Boolean read;

 

Boolean CanRead { get; }

 

ReadOnly Property CanRead() As Boolean

CanSeek

Gets a value indicating whether the current stream supports seeking.

 

property CanSeek: Boolean read;

 

Boolean CanSeek { get; }

 

ReadOnly Property CanSeek() As Boolean

CanWrite

Gets a value indicating whether the current stream supports writing.

 

property CanWrite: Boolean read;

 

Boolean CanWrite { get; }

 

ReadOnly Property CanWrite() As Boolean

Length

Gets the specified in the constructor length to read in bytes.

 

property Length: Int64 read;

 

Int64 Length { get; }

 

ReadOnly Property Length() As Int64

Position

Gets the position within the current stream.

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

Property Position() As Int64

 

constructor

 

constructor(connection: Connection; size: Int32)

 

BoundIncomingStream(Connection connection, Int32 size)

 

Sub New(connection As Connection, size As Int32)

Parameters:

  • connection:
  • size:

Close

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

 

method Close

 

void Close()

 

Sub Close()

Flush

Clears all buffers for this stream.

 

method Flush

 

void Flush()

 

Sub Flush()

Read

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

 

method Read(buffer: array of Byte; offset: Int32; count: Int32): Int32

 

Int32 Read(Byte[] buffer, Int32 offset, Int32 count)

 

Function Read(buffer As Byte(), offset As Int32, count As Int32) As Int32

Parameters:

  • buffer:
  • offset:
  • count:

Seek

The class does not support seeking.

 

method Seek(offset: Int64; origin: SeekOrigin): Int64

 

Int64 Seek(Int64 offset, SeekOrigin origin)

 

Function Seek(offset As Int64, origin As SeekOrigin) As Int64

Parameters:

  • offset:
  • origin:

SetLength

The class does not support SetLength.

 

method SetLength(length: Int64)

 

void SetLength(Int64 length)

 

Sub SetLength(length As Int64)

Parameters:

  • length:

Write

The class does not support the write, it is read-only stream.

 

method Write(buffer: array of Byte; offset: Int32; count: Int32)

 

void Write(Byte[] buffer, Int32 offset, Int32 count)

 

Sub Write(buffer As Byte(), offset As Int32, count As Int32)

Parameters:

  • buffer:
  • offset:
  • count: