RpcProtoWriter class final
Writes protobuf wire format.
Writes every field it is asked to: leaving out a default value, as proto3 does, is the caller's choice.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - The bytes written so far.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeBytesField(
int field, List< int> value) → void -
Writes a length-delimited field holding
value. -
writeStringField(
int field, String value) → void -
Writes a length-delimited field holding
valueas UTF-8. -
writeTag(
int field, int wireType) → void - Writes a field tag.
-
writeVarint(
int value) → void -
Writes
valueas a varint; a negative one as the ten bytes of its 64-bit two's complement, as protobuf encodesint32andint64. -
writeVarintField(
int field, int value) → void - Writes a varint field.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited