FluttifyMessageCodec class
- Inheritance
- Object
- StandardMessageCodec
- FluttifyMessageCodec
Constructors
- FluttifyMessageCodec({String tag, dynamic androidCaster(dynamic ref, String typeName), dynamic iosCaster(dynamic ref, String typeName)})
-
const
Properties
- androidCaster → dynamic Function(dynamic ref, String typeName)
-
外部传入造型回调, 自动把Ref转换为目标对象
foundation内部还是手动处理
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- iosCaster → dynamic Function(dynamic ref, String typeName)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- tag → String
-
final
Methods
-
decodeMessage(
ByteData message) → dynamic -
Decodes the specified
message
from binary. [...]inherited -
encodeMessage(
dynamic message) → ByteData -
Encodes the specified
message
in binary. [...]inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
readSize(
ReadBuffer buffer) → int -
Reads a non-negative int from
buffer
as written by writeSize. [...]inherited -
readValue(
ReadBuffer buffer) → dynamic -
Reads a value from
buffer
as written by writeValue. [...]inherited -
readValueOfType(
int type, ReadBuffer buffer) → dynamic -
Reads a value of the indicated
type
frombuffer
. [...]override -
toString(
) → String -
A string representation of this object. [...]
inherited
-
writeSize(
WriteBuffer buffer, int value) → void -
Writes a non-negative 32-bit integer
value
tobuffer
using an expanding 1-5 byte encoding that optimizes for small values. [...]inherited -
writeValue(
WriteBuffer buffer, dynamic value) → void -
Writes
value
tobuffer
by first writing a type discriminator byte, then the value itself. [...]override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited