WrappedPlatformStream
Overview
Stream implementation that wraps a platform stream.
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- Elements.fx Island
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Island
- Ancestry: Stream | WrappedPlatformStream
constructor
constructor(aStream: PlatformStream)
WrappedPlatformStream(PlatformStream aStream)
init(_ aStream: PlatformStream)
Sub New(aStream As PlatformStream)
Parameters:
- aStream:
CanRead override virtual
property CanRead: Boolean read;
Boolean CanRead { get; }
var CanRead: Boolean { get{} }
ReadOnly Property CanRead() As Boolean
CanSeek override virtual
property CanSeek: Boolean read;
Boolean CanSeek { get; }
var CanSeek: Boolean { get{} }
ReadOnly Property CanSeek() As Boolean
CanWrite override virtual
property CanWrite: Boolean read;
Boolean CanWrite { get; }
var CanWrite: Boolean { get{} }
ReadOnly Property CanWrite() As Boolean
Close override virtual
method Close
void Close()
func Close()
Sub 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)
Sub CopyTo(Destination As Stream)
Parameters:
- Destination:
Dispose (declared in Stream)
Close the stream and underlying resources.
method Dispose
void Dispose()
func Dispose()
Sub Dispose()
Flush override virtual
method Flush
void Flush()
func Flush()
Sub Flush()
GetLength override virtual
Returns the length of this stream.
GetPosition override virtual
Returns the current position in this stream.
method GetPosition: Int64
Int64 GetPosition()
func GetPosition() -> Int64
Function GetPosition() As Int64
Length override virtual
Returns the length of this stream.
property Length: Int64 read;
Int64 Length { get; }
var Length: Int64 { get{} }
ReadOnly Property Length() As Int64
Position override virtual
Returns the current position in this stream.
property Position: Int64 read write;
Int64 Position { get; set; }
var Position: Int64 { get{} set{} }
Property Position() As Int64
Read from this stream. Returns the nr of bytes retreived., or 0 when the end has been reached.
Parameters:
- Buffer:
- Count:
Read from this stream. Returns the nr of bytes retreived, or 0 when the end has been reached.
Parameters:
- Buffer:
- Offset:
- Count:
ReadByte virtual (declared in Stream)
Reads a byte or returns -1 if the stream has reached the end
Parameters:
- aResult:
ReadGuid (declared in Stream)
Parameters:
- aResult:
ReadUInt16BE (declared in Stream)
Parameters:
- aResult:
ReadUInt16LE (declared in Stream)
Parameters:
- aResult:
ReadUInt32BE (declared in Stream)
Parameters:
- aResult:
ReadUInt32LE (declared in Stream)
Parameters:
- aResult:
ReadUInt64BE (declared in Stream)
Parameters:
- aResult:
ReadUInt64LE (declared in Stream)
Parameters:
- aResult:
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
Function Seek(Offset As Int64, Origin As SeekOrigin) As Int64
Parameters:
- Offset:
- Origin:
SetLength
Changes the length of this stream.
method SetLength(Value: Int64)
void SetLength(Int64 Value)
func SetLength(_ Value: Int64)
Sub SetLength(Value As 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)
Sub SetPosition(Value As Int64)
Parameters:
- Value:
Parameters:
- Buffer:
Writes data to the stream.
Parameters:
- Buffer:
- Count:
Writes data to the stream.
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)
Sub WriteByte(aValue As Byte)
Parameters:
- aValue:
WriteGuid (declared in Stream)
Parameters:
- value:
WriteUInt16BE (declared in Stream)
Parameters:
- value:
WriteUInt16LE (declared in Stream)
Parameters:
- value:
WriteUInt32BE (declared in Stream)
Parameters:
- value:
WriteUInt32LE (declared in Stream)
Parameters:
- value:
WriteUInt64BE (declared in Stream)
Parameters:
- value:
WriteUInt64LE (declared in Stream)
Parameters:
- value:
CanRead override virtual
property CanRead: Boolean read;
Boolean CanRead { get; }
var CanRead: Boolean { get{} }
ReadOnly Property CanRead() As Boolean
CanSeek override virtual
property CanSeek: Boolean read;
Boolean CanSeek { get; }
var CanSeek: Boolean { get{} }
ReadOnly Property CanSeek() As Boolean
CanWrite override virtual
property CanWrite: Boolean read;
Boolean CanWrite { get; }
var CanWrite: Boolean { get{} }
ReadOnly Property CanWrite() As Boolean
Length override virtual
Returns the length of this stream.
property Length: Int64 read;
Int64 Length { get; }
var Length: Int64 { get{} }
ReadOnly Property Length() As Int64
Position override virtual
Returns the current position in this stream.
constructor
constructor(aStream: PlatformStream)
WrappedPlatformStream(PlatformStream aStream)
init(_ aStream: PlatformStream)
Sub New(aStream As PlatformStream)
Parameters:
- aStream:
Close override virtual
method Close
void Close()
func Close()
Sub 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)
Sub CopyTo(Destination As Stream)
Parameters:
- Destination:
Dispose (declared in Stream)
Close the stream and underlying resources.
method Dispose
void Dispose()
func Dispose()
Sub Dispose()
Flush override virtual
method Flush
void Flush()
func Flush()
Sub Flush()
GetLength override virtual
Returns the length of this stream.
GetPosition override virtual
Returns the current position in this stream.
method GetPosition: Int64
Int64 GetPosition()
func GetPosition() -> Int64
Function GetPosition() As Int64
Read from this stream. Returns the nr of bytes retreived., or 0 when the end has been reached.
Parameters:
- Buffer:
- Count:
Read from this stream. Returns the nr of bytes retreived, or 0 when the end has been reached.
Parameters:
- Buffer:
- Offset:
- Count:
ReadByte virtual (declared in Stream)
Reads a byte or returns -1 if the stream has reached the end
Parameters:
- aResult:
ReadGuid (declared in Stream)
Parameters:
- aResult:
ReadUInt16BE (declared in Stream)
Parameters:
- aResult:
ReadUInt16LE (declared in Stream)
Parameters:
- aResult:
ReadUInt32BE (declared in Stream)
Parameters:
- aResult:
ReadUInt32LE (declared in Stream)
Parameters:
- aResult:
ReadUInt64BE (declared in Stream)
Parameters:
- aResult:
ReadUInt64LE (declared in Stream)
Parameters:
- aResult:
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
Function Seek(Offset As Int64, Origin As SeekOrigin) As Int64
Parameters:
- Offset:
- Origin:
SetLength
Changes the length of this stream.
method SetLength(Value: Int64)
void SetLength(Int64 Value)
func SetLength(_ Value: Int64)
Sub SetLength(Value As 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)
Sub SetPosition(Value As Int64)
Parameters:
- Value:
Parameters:
- Buffer:
Writes data to the stream.
Parameters:
- Buffer:
- Count:
Writes data to the stream.
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)
Sub WriteByte(aValue As Byte)
Parameters:
- aValue:
WriteGuid (declared in Stream)
Parameters:
- value:
WriteUInt16BE (declared in Stream)
Parameters:
- value:
WriteUInt16LE (declared in Stream)
Parameters:
- value:
WriteUInt32BE (declared in Stream)
Parameters:
- value:
WriteUInt32LE (declared in Stream)
Parameters:
- value:
WriteUInt64BE (declared in Stream)
Parameters:
- value:
WriteUInt64LE (declared in Stream)
Parameters:
- value: