Class BinaryTransferObject
Represents binary object.
Inheritance
BinaryTransferObject
Assembly: DotNext.IO.dll
Syntax
public class BinaryTransferObject : IDataTransferObject, IConvertible<ReadOnlySequence<byte>>
Constructors
|
Improve this Doc
View Source
BinaryTransferObject(ReadOnlySequence<Byte>)
Initializes a new binary DTO.
Declaration
public BinaryTransferObject(ReadOnlySequence<byte> content)
Parameters
|
Improve this Doc
View Source
BinaryTransferObject(ReadOnlyMemory<Byte>)
Initializes a new binary object.
Declaration
public BinaryTransferObject(ReadOnlyMemory<byte> content)
Parameters
Properties
|
Improve this Doc
View Source
Content
Gets stream representing content.
Declaration
public ReadOnlySequence<byte> Content { get; }
Property Value
Explicit Interface Implementations
|
Improve this Doc
View Source
IDataTransferObject.IsReusable
Declaration
bool IDataTransferObject.IsReusable { get; }
Returns
|
Improve this Doc
View Source
IDataTransferObject.Length
Declaration
long? IDataTransferObject.Length { get; }
Returns
|
Improve this Doc
View Source
IDataTransferObject.WriteToAsync<TWriter>(TWriter, CancellationToken)
Declaration
ValueTask IDataTransferObject.WriteToAsync<TWriter>(TWriter writer, CancellationToken token)
where TWriter : IAsyncBinaryWriter
Parameters
Returns
Type Parameters
Implements
System.IConvertible<>
Extension Methods