AslCodec class final

Converts ASL models to and from their binary representation.

Each conversion handles one complete in-memory file. The encoded type is List<int> so this codec can be composed with standard dart:convert codecs, while encode keeps the more precise Uint8List return type.

Inheritance

Constructors

AslCodec({AslDecodeOptions decodeOptions = const AslDecodeOptions(), AslEncodeOptions encodeOptions = const AslEncodeOptions()})
Creates a reusable codec with fixed decoding and encoding options.
const

Properties

decodeOptions → AslDecodeOptions
Options applied while decoding.
final
decoder → AslDecoder
Returns the decoder of this, converting from T to S.
no setteroverride
encodeOptions → AslEncodeOptions
Options applied while encoding.
final
encoder → AslEncoder
Returns the encoder from S to T.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
inverted → Codec<List<int>, AslFile>
Inverts this.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(List<int> encoded) → AslFile
Decodes encoded data.
inherited
encode(AslFile input) → Uint8List
Encodes input.
override
fuse<R>(Codec<List<int>, R> other) → Codec<AslFile, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited