Search Results for

    Show / Hide Table of Contents

    Struct BinaryPayload

    Implements
    IBinarySource
    IEmptiable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Networking
    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
    Type Name Description
    byte[] bytes
    MimeType contentType
    | Edit this page View Source

    BinaryPayload(ReadOnlyMemory<byte>, MimeType)

    Declaration
    public BinaryPayload(ReadOnlyMemory<byte> bytes, MimeType contentType)
    Parameters
    Type Name Description
    ReadOnlyMemory<byte> bytes
    MimeType contentType

    Properties

    | Edit this page View Source

    Bytes

    Declaration
    public ReadOnlyMemory<byte> Bytes { get; }
    Property Value
    Type Description
    ReadOnlyMemory<byte>
    | Edit this page View Source

    ContentType

    Declaration
    public MimeType ContentType { get; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    Empty

    Declaration
    public static BinaryPayload Empty { get; }
    Property Value
    Type Description
    BinaryPayload
    | Edit this page View Source

    IsEmpty

    Gets whether this object is empty.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsNotEmpty

    Declaration
    public bool IsNotEmpty { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    FromBase64String(string, MimeType)

    Declaration
    public static BinaryPayload FromBase64String(string base64String, MimeType contentType)
    Parameters
    Type Name Description
    string base64String
    MimeType contentType
    Returns
    Type Description
    BinaryPayload
    | Edit this page View Source

    TryFromBase64String(string, MimeType, out BinaryPayload)

    Declaration
    public static bool TryFromBase64String(string base64String, MimeType contentType, out BinaryPayload chunk)
    Parameters
    Type Name Description
    string base64String
    MimeType contentType
    BinaryPayload chunk
    Returns
    Type Description
    bool
    | 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
    Type Name Description
    byte[] streamedData
    int dataLength
    MimeType contentType
    BinaryPayload chunk
    Returns
    Type Description
    bool

    Implements

    IBinarySource
    IEmptiable

    Extension Methods

    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation