Class BinaryTransferObject
Represents binary object.
Inheritance
BinaryTransferObject
Assembly: DotNext.Net.Cluster.dll
Syntax
public class BinaryTransferObject : object, IDataTransferObject
Constructors
|
Improve this Doc
View Source
BinaryTransferObject(ReadOnlyMemory<Byte>)
Initializes a new binary object.
Declaration
public BinaryTransferObject(ReadOnlyMemory<byte> content)
Parameters
Type |
Name |
Description |
ReadOnlyMemory<Byte> |
content |
The content of the object.
|
|
Improve this Doc
View Source
BinaryTransferObject(ReadOnlySequence<Byte>)
Initializes a new binary DTO.
Declaration
public BinaryTransferObject(ReadOnlySequence<byte> content)
Parameters
Type |
Name |
Description |
ReadOnlySequence<Byte> |
content |
The content of the object.
|
Properties
|
Improve this Doc
View Source
Content
Gets stream representing content.
Declaration
public ReadOnlySequence<byte> Content { get; }
Property Value
Type |
Description |
ReadOnlySequence<Byte> |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IDataTransferObject.CopyToAsync(PipeWriter, CancellationToken)
Declaration
ValueTask IDataTransferObject.CopyToAsync(PipeWriter output, CancellationToken token)
Parameters
Type |
Name |
Description |
PipeWriter |
output |
|
CancellationToken |
token |
|
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
IDataTransferObject.CopyToAsync(Stream, CancellationToken)
Declaration
Task IDataTransferObject.CopyToAsync(Stream output, CancellationToken token)
Parameters
Type |
Name |
Description |
Stream |
output |
|
CancellationToken |
token |
|
Returns
|
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
Implements
Extension Methods