Show / Hide Table of Contents

Class BlittableTransferObject<T>

Represents a value of blittable type as DTO.

Inheritance
object
MemoryManager<byte>
BlittableTransferObject<T>
Implements
IMemoryOwner<byte>
IDisposable
IPinnable
ISerializable<BlittableTransferObject<T>>
IDataTransferObject
IBinaryFormattable<BlittableTransferObject<T>>
Inherited Members
MemoryManager<byte>.CreateMemory(int)
MemoryManager<byte>.CreateMemory(int, int)
MemoryManager<byte>.TryGetArray(out ArraySegment<byte>)
MemoryManager<byte>.Memory
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.IO
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
Type Description
T

Methods

View Source

Dispose(bool)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
Overrides
MemoryManager<byte>.Dispose(bool)
View Source

GetSpan()

Declaration
public override sealed Span<byte> GetSpan()
Returns
Type Description
Span<byte>
Overrides
MemoryManager<byte>.GetSpan()
View Source

Pin(int)

Declaration
public override sealed MemoryHandle Pin(int elementIndex = 0)
Parameters
Type Name Description
int elementIndex
Returns
Type Description
MemoryHandle
Overrides
MemoryManager<byte>.Pin(int)
View Source

Unpin()

Declaration
public override sealed void Unpin()
Overrides
MemoryManager<byte>.Unpin()

Implements

IMemoryOwner<T>
IDisposable
IPinnable
ISerializable<TSelf>
IDataTransferObject
IBinaryFormattable<TSelf>

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
DataTransferObject.ToByteArrayAsync<TObject>(TObject, MemoryAllocator<byte>?, CancellationToken)
DataTransferObject.ToMemoryAsync<TObject>(TObject, MemoryAllocator<byte>?, CancellationToken)
DataTransferObject.ToStringAsync<TObject>(TObject, Encoding, MemoryAllocator<byte>?, CancellationToken)
DataTransferObject.TransformAsync<TResult, TObject>(TObject, Func<IAsyncBinaryReader, CancellationToken, ValueTask<TResult>>, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, IBufferWriter<byte>, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, PipeWriter, long, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, Stream, int, CancellationToken)
DataTransferObject.WriteToAsync<TObject>(TObject, Stream, Memory<byte>, CancellationToken)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾