The class represents a segment of memory that data can be appended to.

C# | Visual Basic | Managed C++ |
public struct ConsumableBlock
Public Structure ConsumableBlock
public value class ConsumableBlock

All Members | Constructors | Methods | Properties | Fields | Events |
Icon | Member | Description |
---|---|---|
![]() | ConsumableBlockNew(UInt32) |
Allocates a new segment of memory of a given size.
|
![]() | ConsumableBlockNew(Byte[]()) |
Creates a reference to an existing segment of managed memory.
|
![]() | ConsumableBlockNew(Byte[](), UInt32, UInt32) |
Creates a reference to an existing segment of managed memory, with the specified starting position and size.
|
![]() | ConsumableBlockNew(ArraySegment<(Of Byte>)) |
Creates a reference to an existing segment of managed memory.
|
![]() | ConsumableBlockNew(Block, UInt32) |
Creates a reference to an existing segment of managed or unmanaged memory.
|
![]() | ConsumableBlockNew(Block, UInt32, UInt32) |
Creates a reference to an existing segment of managed or unmanaged memory.
|
![]() | Array |
Returns the managed address of the memory segment if the segment is managed and throws and exception otherwise.
|
![]() | Block |
Returns the managed or unmanaged memory block that contains the data.
|
![]() | consume(Int32) |
Adjusts the offset and available space within the memory block to reflect the fact that a number of bytes have been appended to it.
|
![]() | Consumed |
Returns the number of bytes already appended to the memory block.
|
![]() | Count |
Returns the number of bytes remaining to be appended to the memory block.
|
![]() | 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 |
Returns the current offset within the memory block where new data can be appended.
|
![]() | reset() |
Resets the memory block to its original size, allowing all existing data to be overwritten.
|
![]() | ToString() | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |