Represents a value of blittable type as DTO.
InheritanceBlittableTransferObject<T>
Namespace: DotNext.IO Assembly: DotNext.IO.dll Syntaxpublic 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.
Properties | Edit this page View Source ContentGets the content of this object.
Declarationpublic ref T Content { get; }
Property Value Methods | Edit this page View Source Dispose(bool)
Releases all resources used by the current memory manager.
Declarationprotected override void Dispose(bool disposing)
Parameters Type Name Description bool disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides | Edit this page View Source GetSpan()Returns a memory span that wraps the underlying memory buffer.
Declarationpublic override sealed Span<byte> GetSpan()
Returns Type Description Span<byte>
A memory span that wraps the underlying memory buffer.
Overrides | Edit this page View Source Pin(int)Returns a handle to the memory that has been pinned and whose address can be taken.
Declarationpublic override sealed MemoryHandle Pin(int elementIndex = 0)
Parameters Type Name Description int elementIndex
The offset to the element in the memory buffer at which the returned MemoryHandle points.
Returns Type Description MemoryHandleA handle to the memory that has been pinned.
Overrides | Edit this page View Source Unpin()Unpins pinned memory so that the garbage collector is free to move it.
Declarationpublic override sealed void Unpin()
Overrides Implements Extension Methods
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4