BnutCodec class
A BnutCodec encodes String to bnut bytes data and decodes bytes to Squirrel code (.nut extension).
Examples:
var encoded = bnut.encode('print("hello")');
var decoded = bnut.decode(encoded);
Constructors
- BnutCodec()
-
const
Properties
-
decoder
→ Converter<
List< int> , String> -
Returns the decoder of
this
, converting fromT
toS
.no setteroverride -
encoder
→ Converter<
String, List< int> > -
Returns the encoder from
S
toT
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
List< int> , String> -
Inverts
this
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
List< int> encoded) → String -
Decodes
encoded
data.inherited -
encode(
String input) → List< int> -
Encodes
input
.inherited -
fuse<
R> (Codec< List< other) → Codec<int> , R>String, R> -
Fuses
this
withother
.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