Struct BinaryPayload
Assembly: Glitch9.IO.dll
Syntax
public readonly struct BinaryPayload : IBinarySource, IEmptiable
Constructors
|
Edit this page
View Source
BinaryPayload(byte[], MimeType)
Declaration
public BinaryPayload(byte[] bytes, MimeType contentType)
Parameters
|
Edit this page
View Source
BinaryPayload(ReadOnlyMemory<byte>, MimeType)
Declaration
public BinaryPayload(ReadOnlyMemory<byte> bytes, MimeType contentType)
Parameters
Properties
|
Edit this page
View Source
Bytes
Declaration
public ReadOnlyMemory<byte> Bytes { get; }
Property Value
|
Edit this page
View Source
ContentType
Declaration
public MimeType ContentType { get; }
Property Value
|
Edit this page
View Source
Empty
Declaration
public static BinaryPayload Empty { get; }
Property Value
|
Edit this page
View Source
IsEmpty
Gets whether this object is empty.
Declaration
public bool IsEmpty { get; }
Property Value
|
Edit this page
View Source
IsNotEmpty
Declaration
public bool IsNotEmpty { get; }
Property Value
Methods
|
Edit this page
View Source
FromBase64String(string, MimeType)
Declaration
public static BinaryPayload FromBase64String(string base64String, MimeType contentType)
Parameters
Returns
|
Edit this page
View Source
TryFromBase64String(string, MimeType, out BinaryPayload)
Declaration
public static bool TryFromBase64String(string base64String, MimeType contentType, out BinaryPayload chunk)
Parameters
Returns
|
Edit this page
View Source
TryFromStreamedData(byte[], int, MimeType, out BinaryPayload)
Declaration
public static bool TryFromStreamedData(byte[] streamedData, int dataLength, MimeType contentType, out BinaryPayload chunk)
Parameters
Returns
Implements
Extension Methods