SKStream Class

Definition

An abstraction for a source of bytes, which can be backed by memory, or a file, or something else.

public abstract class SKStream : SkiaSharp.SKObject
Inheritance
Derived

Properties

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
HasLength

Gets a value indicating whether this stream can report it's total length.

HasPosition

Gets a value indicating whether this stream can report it's current position.

IsAtEnd

Gets a value indicating whether all the bytes in the stream have been read.

Length

Gets the total length of the stream. If this is not supported, the length will be reported as 0.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)
Position

Gets the current position in the stream. If this is not supported, the position will be reported as 0.

Methods

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKObject and optionally releases the managed resources.

(Inherited from SKObject)
GetMemoryBase()

Returns the memory address of the data if the stream is a memory stream.

Move(Int64)

Seeks to an relative offset in the stream.

Peek(IntPtr, Int32)

Attempt to peek at size bytes.

Read(Byte[], Int32)

Reads a copy of the specified number of bytes into the provided buffer.

Read(IntPtr, Int32)

Reads a copy of the specified number of bytes into the provided buffer.

ReadBool()

Read a single boolean.

ReadBool(Boolean)

Read a single boolean.

ReadByte()

Read a single byte.

ReadByte(Byte)

Read a single byte.

ReadInt16()

Read a single 16-bit integer.

ReadInt16(Int16)

Read a single 16-bit integer.

ReadInt32()

Read a single 32-bit integer.

ReadInt32(Int32)

Read a single 32-bit integer.

ReadSByte()

Read a single, signed byte.

ReadSByte(SByte)

Read a single, signed byte.

ReadUInt16()

Read a single, unsigned 16-bit integer.

ReadUInt16(UInt16)

Read a single, unsigned 16-bit integer.

ReadUInt32()

Read a single, unsigned 32-bit integer.

ReadUInt32(UInt32)

Read a single, unsigned 32-bit integer.

Rewind()

Rewinds to the beginning of the stream.

Seek(Int32)

Seeks to an absolute position in the stream.

Skip(Int32)

Moves the current position on by the specified number of bytes.

Applies to