Click or drag to resize

PinnedString Class

Pins a managed string for unmanaged use.
Inheritance Hierarchy

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
[ComVisibleAttribute(false)]
public class PinnedString : PinnedBuffer

The PinnedString type exposes the following members.

Constructors
  NameDescription
Public methodPinnedString(Int32)
Initializes a new instance with a new managed string and pins memory position.
Public methodPinnedString(String)
Initializes a new instance with an existing managed string and pins memory position.
Top
Properties
  NameDescription
Public propertyByteLength
Gets the size of the buffer, in bytes.
(Inherited from SafeBuffer.)
Protected propertyGCHandle (Inherited from PinnedBuffer.)
Public propertyIsClosed
Gets a value indicating whether the handle is closed.
(Inherited from SafeHandle.)
Public propertyIsInvalid
Gets a value that indicates whether the handle is invalid.
(Inherited from SafeHandleZeroOrMinusOneIsInvalid.)
Public propertyOffset (Inherited from PinnedBuffer.)
Public propertyTarget
Returns managed object pinned by this instance.
Public propertyUnicodeString
Top
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 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 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 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 (Inherited from PinnedBuffer.)
Public methodReleasePointer
Releases a pointer that was obtained by the AcquirePointer(Byte*) method.
(Inherited from SafeBuffer.)
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 (Inherited from PinnedBuffer.)
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
Fields
  NameDescription
Protected fieldhandle
Specifies the handle to be wrapped.
(Inherited from SafeHandle.)
Top
See Also