System.Runtime.InteropServices.SafeBuffer: Method Members

The methods of System.Runtime.InteropServices.SafeBuffer are listed below. For a list of all members, see the SafeBuffer Members list.

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

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.