Class TypeCodec
A codec for type references.
Inherited Members
Namespace: Flame.Ir
Assembly: Flame.Ir.dll
Syntax
public class TypeCodec : Codec<IType, LNode>
Fields
| Edit this page View SourceInstance
An instance of the type codec.
Declaration
public static readonly TypeCodec Instance
Field Value
| Type | Description |
|---|---|
| TypeCodec |
Methods
| Edit this page View SourceDecode(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
| Edit this page View SourceEncode(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. |