Show / Hide Table of Contents

Struct BinaryTransferObject

Represents binary transfer object.

Implements
IDataTransferObject
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public readonly struct BinaryTransferObject : IDataTransferObject

Constructors

View Source

BinaryTransferObject(ReadOnlyMemory<byte>)

Represents binary transfer object.

Declaration
public BinaryTransferObject(ReadOnlyMemory<byte> content)
Parameters
Type Name Description
ReadOnlyMemory<byte> content

The payload of the object.

Properties

View Source

Content

Gets the payload.

Declaration
public ReadOnlyMemory<byte> Content { get; }
Property Value
Type Description
ReadOnlyMemory<byte>

Implements

IDataTransferObject

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
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
☀
☾