MessagePackCodec class

Inheritance

Constructors

MessagePackCodec({MessagePackDecodeOptions? decodeOptions, MessagePackEncodeOptions? encodeOptions})

Properties

decoder Converter<Uint8List, Object?>
Returns the decoder of this, converting from T to S.
no setteroverride
encoder Converter<Object?, Uint8List>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<Uint8List, Object?>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Uint8List encoded, [MessagePackDecodeOptions? options]) Object?
Decodes encoded data.
override
encode(Object? input, [MessagePackEncodeOptions? options]) Uint8List
Encodes input.
override
fuse<R>(Codec<Uint8List, R> other) Codec<Object?, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T>(MessagePackExtensionCodec<T> codec) → void
toString() String
A string representation of this object.
inherited
unregister<T>() → void

Operators

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