Class TypeDefinitionCodec
A codec for type definitions.
Inherited Members
Namespace: Flame.Ir
Assembly: Flame.Ir.dll
Syntax
public sealed class TypeDefinitionCodec : Codec<IType, LNode>
Fields
| Edit this page View SourceInstance
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 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. |