SKDynamicMemoryWStream Class

Definition

A writeable, dynamically-sized, memory-based stream.

public class SKDynamicMemoryWStream : SkiaSharp.SKWStream
Inheritance
SKDynamicMemoryWStream

Constructors

SKDynamicMemoryWStream()

Create a new instance of SKDynamicMemoryWStream with an empty buffer.

Properties

BytesWritten

Gets the number of bytes written so far.

(Inherited from SKWStream)
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

CopyTo(IntPtr)

Copies the data from the current stream to a memory location.

CopyTo(SKWStream)

Copies the data from the current stream to the specified stream.

CopyToData()

Returns a copy of the data written so far.

DetachAsData()

Returns a SKData instance of the data in the current stream, and then resets the current stream.

DetachAsStream()

Returns a read-only stream with the current data, and then resets the current stream.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

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

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.

Flush()

Flush the buffer to the underlying destination.

(Inherited from SKWStream)
NewLine()

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

(Inherited from SKWStream)
Write(Byte[], Int32)

Write the provided data to the stream.

(Inherited from SKWStream)
Write16(UInt16)

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

(Inherited from SKWStream)
Write32(UInt32)

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

(Inherited from SKWStream)
Write8(Byte)

Write a single byte to the stream.

(Inherited from SKWStream)
WriteBigDecimalAsText(Int64, Int32)

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

(Inherited from SKWStream)
WriteBool(Boolean)

Write a single boolean to the stream.

(Inherited from SKWStream)
WriteDecimalAsTest(Int32)

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

(Inherited from SKWStream)
WriteHexAsText(UInt32, Int32)

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

(Inherited from SKWStream)
WritePackedUInt32(UInt32)

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

(Inherited from SKWStream)
WriteScalar(Single)

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

(Inherited from SKWStream)
WriteScalarAsText(Single)

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

(Inherited from SKWStream)
WriteStream(SKStream, Int32)

Write the contents of the specified stream to this stream.

(Inherited from SKWStream)
WriteText(String)

Write a string to the stream as a string.

(Inherited from SKWStream)

Applies to