Click or drag to resize

PinnedBuffer Methods

The PinnedBuffer type exposes the following members.

Methods
  NameDescription
Public methodAcquirePointer
Obtains a pointer from a SafeBuffer object for a block of memory.
(Inherited from SafeBuffer.)
Public methodClose
Marks the handle for releasing and freeing resources.
(Inherited from SafeHandle.)
Public methodStatic memberCreate(String)
Initializes a new instance with an existing type T object and pins memory position.
Public methodStatic memberCreateT(T)
Initializes a new instance with an existing type T array and pins memory position.
Public methodDangerousAddRef
Manually increments the reference counter on SafeHandle instances.
(Inherited from SafeHandle.)
Public methodDangerousGetHandle
Returns the value of the handle field.
(Inherited from SafeHandle.)
Public methodDangerousRelease
Manually decrements the reference counter on a SafeHandle instance.
(Inherited from SafeHandle.)
Public methodStatic memberDeserializeT
Public methodStatic memberDestroyStructureT
Public methodDispose
Releases all resources used by the SafeHandle class.
(Inherited from SafeHandle.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.
(Inherited from SafeHandle.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Frees all resources associated with the handle.
(Inherited from SafeHandle.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize(UInt64)
Defines the allocation size of the memory region in bytes. You must call this method before you use the SafeBuffer instance.
(Inherited from SafeBuffer.)
Public methodInitialize(UInt32, UInt32)
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 SafeBuffer instance.
(Inherited from SafeBuffer.)
Public methodInitializeT(UInt32)
Defines the allocation size of the memory region by specifying the number of value types. You must call this method before you use the SafeBuffer instance.
(Inherited from SafeBuffer.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberPtrToStructureT
Public methodReadT
Reads a value type from memory at the specified offset.
(Inherited from SafeBuffer.)
Public methodReadArrayT
Reads the specified number of value types from memory starting at the offset, and writes them into an array starting at the index.
(Inherited from SafeBuffer.)
Protected methodReleaseHandle (Overrides SafeHandleReleaseHandle.)
Public methodReleasePointer
Releases a pointer that was obtained by the AcquirePointer(Byte*) method.
(Inherited from SafeBuffer.)
Public methodStatic memberSerializeT
Protected methodSetHandle
Sets the handle to the specified pre-existing handle.
(Inherited from SafeHandle.)
Public methodSetHandleAsInvalid
Marks a handle as no longer used.
(Inherited from SafeHandle.)
Public methodToString (Overrides ObjectToString.)
Public methodWriteT
Writes a value type to memory at the given location.
(Inherited from SafeBuffer.)
Public methodWriteArrayT
Writes the specified number of value types to a memory location by reading bytes starting from the specified location in the input array.
(Inherited from SafeBuffer.)
Top
See Also