Search Results for

    Show / Hide Table of Contents

    Class TypeCodec

    A codec for type references.

    Inheritance
    object
    Codec<IType, LNode>
    TypeCodec
    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.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Ir
    Assembly: Flame.Ir.dll
    Syntax
    public class TypeCodec : Codec<IType, LNode>

    Fields

    | Edit this page View Source

    Instance

    An instance of the type codec.

    Declaration
    public static readonly TypeCodec Instance
    Field Value
    Type Description
    TypeCodec

    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