Class BlittableTransferObject<T>
Represents a value of blittable type as DTO.
Inheritance
BlittableTransferObject<T>
Assembly: DotNext.IO.dll
Syntax
public class BlittableTransferObject<T> : MemoryManager<byte>, IMemoryOwner<byte>, IDisposable, IPinnable, ISerializable<BlittableTransferObject<T>>, IDataTransferObject, IBinaryFormattable<BlittableTransferObject<T>> where T : unmanaged
Type Parameters
| Name |
Description |
| T |
The blittable type.
|
Constructors
View Source
BlittableTransferObject()
Declaration
public BlittableTransferObject()
Properties
View Source
Content
Gets the content of this object.
Declaration
public ref T Content { get; }
Property Value
Methods
View Source
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
Overrides
View Source
GetSpan()
Declaration
public override sealed Span<byte> GetSpan()
Returns
Overrides
View Source
Pin(int)
Declaration
public override sealed MemoryHandle Pin(int elementIndex = 0)
Parameters
| Type |
Name |
Description |
| int |
elementIndex |
|
Returns
Overrides
View Source
Unpin()
Declaration
public override sealed void Unpin()
Overrides
Implements
Extension Methods