Bearbeiten

Freigeben über


SKWStream Class

Definition

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

public abstract class SKWStream : SkiaSharp.SKObject
Inheritance
Derived

Properties

BytesWritten

Gets the number of bytes written so far.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
OwnsHandle

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

(Inherited from SKObject)

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)
DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
Flush()

Flush the buffer to the underlying destination.

GetSizeOfPackedUInt32(UInt32)

Returns the number of bytes in the stream required to store the specified value.

NewLine()

Write a newline character to the stream, if one was not already written.

Write(Byte[], Int32)

Write the provided data to the stream.

Write16(UInt16)

Write a single, unsigned 16-bit integer to the stream.

Write32(UInt32)

Write a single, unsigned 32-bit integer to the stream.

Write8(Byte)

Write a single byte to the stream.

WriteBigDecimalAsText(Int64, Int32)

Write a single 64-bit integer to the stream as a string.

WriteBool(Boolean)

Write a single boolean to the stream.

WriteDecimalAsTest(Int32)

Write a 32-bit integer to the stream as a string.

WriteHexAsText(UInt32, Int32)

Write an unsigned, 32-bit integer to the stream as a hexadecimal string.

WritePackedUInt32(UInt32)

Write a single, unsigned 32-bit integer to the stream in the smallest space possible.

WriteScalar(Single)

Write a single, floating-point number to the stream.

WriteScalarAsText(Single)

Write a single, floating-point number to the stream as text.

WriteStream(SKStream, Int32)

Write the contents of the specified stream to this stream.

WriteText(String)

Write a string to the stream as a string.

Applies to