WrappedPlatformStream

Overview

Stream implementation that wraps a platform stream.

Location

 

constructor  protected

 

constructor

 

WrappedPlatformStream()

 

init()

CanRead  virtual    (declared in Stream)

Implementations should return true if this stream can be read from.

 

property CanRead: Boolean read;

 

Boolean CanRead { get; }

 

var CanRead: Boolean { get{} }

CanSeek  virtual    (declared in Stream)

Implementations should return true if this stream can be seeked, the position can be changed.

 

property CanSeek: Boolean read;

 

Boolean CanSeek { get; }

 

var CanSeek: Boolean { get{} }

CanWrite  virtual    (declared in Stream)

Implementations should return true if this stream can be written to.

 

property CanWrite: Boolean read;

 

Boolean CanWrite { get; }

 

var CanWrite: Boolean { get{} }

Close  virtual abstract    (declared in Stream)

Close the stream and underlying resources.

 

method Close

 

void Close()

 

func Close()

CopyTo  virtual    (declared in Stream)

Copy the content of this stream to another

 

method CopyTo(Destination: Stream)

 

void CopyTo(Stream Destination)

 

func CopyTo(_ Destination: Stream)

Parameters:

  • Destination:

Dispose    (declared in Stream)

Close the stream and underlying resources.

 

method Dispose

 

void Dispose()

 

func Dispose()

Flush  virtual abstract    (declared in Stream)

Flush the data. Used with file streams to ensure the data is stored on disk

 

method Flush

 

void Flush()

 

func Flush()

GetLength  override virtual

Returns the length of this stream.

 

method GetLength: Int64

 

Int64 GetLength()

 

func GetLength() -> Int64

GetPosition  override virtual

Returns the current position in this stream.

 

method GetPosition: Int64

 

Int64 GetPosition()

 

func GetPosition() -> Int64

Length  override virtual

Returns the length of this stream.

 

property Length: Int64 read;

 

Int64 Length { get; }

 

var Length: Int64 { get{} }

Position  override virtual

Returns the current position in this stream.

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

var Position: Int64 { get{} set{} }

Read (array of Byte, Int32): Int32    (declared in Stream)

Read from this stream. Returns the nr of bytes retreived., or 0 when the end has been reached.

 

method Read(Buffer: array of Byte; Count: Int32): Int32

 

Int32 Read(Byte[] Buffer, Int32 Count)

 

func Read(_ Buffer: Byte..., _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Count:

Read (array of Byte, Int32, Int32): Int32  override virtual

Read from this stream. Returns the nr of bytes retreived, or 0 when the end has been reached.

 

method Read(Buffer: array of Byte; Offset: Int32; Count: Int32): Int32

 

Int32 Read(Byte[] Buffer, Int32 Offset, Int32 Count)

 

func Read(_ Buffer: Byte..., _ Offset: Int32, _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Offset:
  • Count:

ReadByte  virtual    (declared in Stream)

Reads a byte or returns -1 if the stream has reached the end

 

method ReadByte: Int32

 

Int32 ReadByte()

 

func ReadByte() -> Int32

Seek  override virtual

this method can be used to change the position of the stream, relative to the current position, start or end of the stream. Returns the new position.

 

method Seek(Offset: Int64; Origin: SeekOrigin): Int64

 

Int64 Seek(Int64 Offset, SeekOrigin Origin)

 

func Seek(_ Offset: Int64, _ Origin: SeekOrigin) -> Int64

Parameters:

  • Offset:
  • Origin:

SetLength

Changes the length of this stream.

 

method SetLength(Value: Int64)

 

void SetLength(Int64 Value)

 

func SetLength(_ Value: Int64)

Parameters:

  • Value:

SetPosition  override virtual

Sets the absolute position in the stream.

 

method SetPosition(Value: Int64)

 

void SetPosition(Int64 Value)

 

func SetPosition(_ Value: Int64)

Parameters:

  • Value:

Write (array of Byte, Int32): Int32    (declared in Stream)

Writes data to the stream.

 

method Write(Buffer: array of Byte; Count: Int32): Int32

 

Int32 Write(Byte[] Buffer, Int32 Count)

 

func Write(_ Buffer: Byte..., _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Count:

Write (array of Byte, Int32, Int32): Int32  override virtual

Writes data to the stream.

 

method Write(Buffer: array of Byte; Offset: Int32; Count: Int32): Int32

 

Int32 Write(Byte[] Buffer, Int32 Offset, Int32 Count)

 

func Write(_ Buffer: Byte..., _ Offset: Int32, _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Offset:
  • Count:

WriteByte  virtual    (declared in Stream)

Writes data to the stream.

 

method WriteByte(aValue: Byte)

 

void WriteByte(Byte aValue)

 

func WriteByte(_ aValue: Byte)

Parameters:

  • aValue:

 

CanRead  virtual    (declared in Stream)

Implementations should return true if this stream can be read from.

 

property CanRead: Boolean read;

 

Boolean CanRead { get; }

 

var CanRead: Boolean { get{} }

CanSeek  virtual    (declared in Stream)

Implementations should return true if this stream can be seeked, the position can be changed.

 

property CanSeek: Boolean read;

 

Boolean CanSeek { get; }

 

var CanSeek: Boolean { get{} }

CanWrite  virtual    (declared in Stream)

Implementations should return true if this stream can be written to.

 

property CanWrite: Boolean read;

 

Boolean CanWrite { get; }

 

var CanWrite: Boolean { get{} }

Length  override virtual

Returns the length of this stream.

 

property Length: Int64 read;

 

Int64 Length { get; }

 

var Length: Int64 { get{} }

Position  override virtual

Returns the current position in this stream.

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

var Position: Int64 { get{} set{} }

 

constructor  protected

 

constructor

 

WrappedPlatformStream()

 

init()

Close  virtual abstract    (declared in Stream)

Close the stream and underlying resources.

 

method Close

 

void Close()

 

func Close()

CopyTo  virtual    (declared in Stream)

Copy the content of this stream to another

 

method CopyTo(Destination: Stream)

 

void CopyTo(Stream Destination)

 

func CopyTo(_ Destination: Stream)

Parameters:

  • Destination:

Dispose    (declared in Stream)

Close the stream and underlying resources.

 

method Dispose

 

void Dispose()

 

func Dispose()

Flush  virtual abstract    (declared in Stream)

Flush the data. Used with file streams to ensure the data is stored on disk

 

method Flush

 

void Flush()

 

func Flush()

GetLength  override virtual

Returns the length of this stream.

 

method GetLength: Int64

 

Int64 GetLength()

 

func GetLength() -> Int64

GetPosition  override virtual

Returns the current position in this stream.

 

method GetPosition: Int64

 

Int64 GetPosition()

 

func GetPosition() -> Int64

Read (array of Byte, Int32): Int32    (declared in Stream)

Read from this stream. Returns the nr of bytes retreived., or 0 when the end has been reached.

 

method Read(Buffer: array of Byte; Count: Int32): Int32

 

Int32 Read(Byte[] Buffer, Int32 Count)

 

func Read(_ Buffer: Byte..., _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Count:

Read (array of Byte, Int32, Int32): Int32  override virtual

Read from this stream. Returns the nr of bytes retreived, or 0 when the end has been reached.

 

method Read(Buffer: array of Byte; Offset: Int32; Count: Int32): Int32

 

Int32 Read(Byte[] Buffer, Int32 Offset, Int32 Count)

 

func Read(_ Buffer: Byte..., _ Offset: Int32, _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Offset:
  • Count:

ReadByte  virtual    (declared in Stream)

Reads a byte or returns -1 if the stream has reached the end

 

method ReadByte: Int32

 

Int32 ReadByte()

 

func ReadByte() -> Int32

Seek  override virtual

this method can be used to change the position of the stream, relative to the current position, start or end of the stream. Returns the new position.

 

method Seek(Offset: Int64; Origin: SeekOrigin): Int64

 

Int64 Seek(Int64 Offset, SeekOrigin Origin)

 

func Seek(_ Offset: Int64, _ Origin: SeekOrigin) -> Int64

Parameters:

  • Offset:
  • Origin:

SetLength

Changes the length of this stream.

 

method SetLength(Value: Int64)

 

void SetLength(Int64 Value)

 

func SetLength(_ Value: Int64)

Parameters:

  • Value:

SetPosition  override virtual

Sets the absolute position in the stream.

 

method SetPosition(Value: Int64)

 

void SetPosition(Int64 Value)

 

func SetPosition(_ Value: Int64)

Parameters:

  • Value:

Write (array of Byte, Int32): Int32    (declared in Stream)

Writes data to the stream.

 

method Write(Buffer: array of Byte; Count: Int32): Int32

 

Int32 Write(Byte[] Buffer, Int32 Count)

 

func Write(_ Buffer: Byte..., _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Count:

Write (array of Byte, Int32, Int32): Int32  override virtual

Writes data to the stream.

 

method Write(Buffer: array of Byte; Offset: Int32; Count: Int32): Int32

 

Int32 Write(Byte[] Buffer, Int32 Offset, Int32 Count)

 

func Write(_ Buffer: Byte..., _ Offset: Int32, _ Count: Int32) -> Int32

Parameters:

  • Buffer:
  • Offset:
  • Count:

WriteByte  virtual    (declared in Stream)

Writes data to the stream.

 

method WriteByte(aValue: Byte)

 

void WriteByte(Byte aValue)

 

func WriteByte(_ aValue: Byte)

Parameters:

  • aValue:

Descendants