Search Results for

    Show / Hide Table of Contents

    Class TypeDefinitionCodec

    A codec for type definitions.

    Inheritance
    object
    Codec<IType, LNode>
    TypeDefinitionCodec
    Inherited Members
    Codec<IType, LNode>.Encode(IType, EncoderState)
    Codec<IType, LNode>.Decode(LNode, DecoderState)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Ir
    Assembly: Flame.Ir.dll
    Syntax
    public sealed class TypeDefinitionCodec : Codec<IType, LNode>

    Fields

    | Edit this page View Source

    Instance

    Gets an instance of the default type definition codec.

    Declaration
    public static readonly Codec<IType, LNode> Instance
    Field Value
    Type Description
    Codec<IType, LNode>

    A type definition codec.

    Methods

    | Edit this page View Source

    Decode(LNode, DecoderState)

    Decodes a particular piece of data.

    Declaration
    public override IType Decode(LNode data, DecoderState state)
    Parameters
    Type Name Description
    LNode data

    Encoded data to decode.

    DecoderState state

    The decoder's state.

    Returns
    Type Description
    IType

    A decoded object.

    Overrides
    Codec<IType, LNode>.Decode(LNode, DecoderState)
    | Edit this page View Source

    Encode(IType, EncoderState)

    Encodes a value.

    Declaration
    public override LNode Encode(IType value, EncoderState state)
    Parameters
    Type Name Description
    IType value

    The value to encode.

    EncoderState state

    The state of the encoder.

    Returns
    Type Description
    LNode

    The encoded value.

    Overrides
    Codec<IType, LNode>.Encode(IType, EncoderState)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX