System.Runtime.InteropServices.SafeBuffer Members

The members of System.Runtime.InteropServices.SafeBuffer are listed below.

See Also: Inherited members from Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid

Protected Constructors

Creates a new instance of the System.Runtime.InteropServices.SafeBuffer class, and specifies whether the buffer handle is to be reliably released.

Public Properties

[read-only]
ByteLengthulong.

Gets the size of the buffer, in bytes.

Public Methods

AcquirePointer(ref byte*)
Documentation for this section has not yet been entered.
Initialize(ulong)

Defines the allocation size of the memory region in bytes. You must call this method before you use the System.Runtime.InteropServices.SafeBuffer instance.

Initialize(uint, uint)

Specifies the allocation size of the memory buffer by using the specified number of elements and element size. You must call this method before you use the System.Runtime.InteropServices.SafeBuffer instance.

Initialize<T>(uint)

Defines the allocation size of the memory region by specifying the number of value types. You must call this method before you use the System.Runtime.InteropServices.SafeBuffer instance.

Read<T>(ulong) : T

Reads a value type from memory at the specified offset.

ReadArray<T>(ulong, T[], int, int)
Documentation for this section has not yet been entered.
ReleasePointer()

Releases a pointer that was obtained by the SafeBuffer.AcquirePointer(Byte*@) method.

Write<T>(ulong, T)
Documentation for this section has not yet been entered.
WriteArray<T>(ulong, T[], int, int)
Documentation for this section has not yet been entered.