Search Results for

    Show / Hide Table of Contents

    Class RawJsonFramer

    Raw JSON framer.

    • Starts framing when encountering '{' or '[' (object/array).
    • Handles string/escape context, yields frame when depth returns to 0.
    • If invalid JSON, discards buffer.
    • (Option) If frame exceeds max bytes, resets state and buffer.
    Inheritance
    object
    RawJsonFramer
    Implements
    IByteFramer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Networking.RESTApi
    Assembly: Glitch9.IO.dll
    Syntax
    public sealed class RawJsonFramer : IByteFramer

    Constructors

    | Edit this page View Source

    RawJsonFramer(int)

    Declaration
    public RawJsonFramer(int maxFrameBytes = 16777216)
    Parameters
    Type Name Description
    int maxFrameBytes

    Maximum frame size in bytes (for safety, resets state if exceeded).

    Methods

    | Edit this page View Source

    Feed(ReadOnlyMemory<byte>)

    Declaration
    public IEnumerable<ReadOnlyMemory<byte>> Feed(ReadOnlyMemory<byte> chunk)
    Parameters
    Type Name Description
    ReadOnlyMemory<byte> chunk
    Returns
    Type Description
    IEnumerable<ReadOnlyMemory<byte>>

    Implements

    IByteFramer

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    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.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation