This structure represents a single contiguous block of managed or unmanaged memory.
| C# | Visual Basic | Managed C++ |
public struct Block
Public Structure Block
public value class Block
| All Members | Constructors | Methods | Properties | Fields | Events |
| Icon | Member | Description |
|---|---|---|
| BlockNew(Byte[]()) |
Creates a reference to a managed byte array.
| |
| BlockNew(Byte[](), UInt32, UInt32) |
Creates a reference to a portion of a managed byte array.
| |
| BlockNew(ArraySegment<(Of Byte>)) |
Creates a reference to a portion of a managed byte array represented as an array segment.
| |
| BlockNew(IntPtr, UInt32, UInt32) |
Creates a reference to a block of unmanaged memory or managed memory that has been previously pinned.
| |
| BlockNew(Type, Byte[](), IntPtr, UInt32, UInt32) |
Creates a reference to managed or unmanaged memory.
| |
| address |
Unmanaged address of a memory segment.
| |
| buffer |
Managed address of a memory segment.
| |
| control |
The structure that counts references to the memory block, used for explicit garbage collection.
| |
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
| Finalize() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode() | Returns the hash code for this instance. (Inherited from ValueType.) | |
| GetType() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| offset |
Position with respect to the provided address of a memory segment where the data starts.
| |
| Pin(GCHandle) |
Pin the block of managed memory, return a GCHandle representing it, and update the reference with the unmanaged address.
| |
| size |
The size of the referenced data in bytes.
| |
| ToString() | Returns the fully qualified type name of this instance. (Inherited from ValueType.) | |
| type |
The type of The type of memory to reference.
|