CodedBufferReader class

Reader used for converting binary-encoded protobufs into GeneratedMessages.

Constructors

CodedBufferReader(List<int> buffer, {int recursionLimit = DEFAULT_RECURSION_LIMIT, int sizeLimit = DEFAULT_SIZE_LIMIT})

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

checkLastTagWas(int value) → void
isAtEnd() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBool() bool
readBytes() Uint8List
Read a length-delimited field as bytes.
readBytesAsView() Uint8List
Read a length-delimited field as a view of the CodedBufferReader's buffer. When storing the returned value directly (instead of e.g. parsing it as a UTF-8 string and copying) use readBytes instead to avoid holding on to the whole message, or copy the returned view.
readDouble() double
readEnum() int
readFixed32() int
readFixed64() Int64
readFloat() double
readGroup(int fieldNumber, GeneratedMessage message, ExtensionRegistry extensionRegistry) → void
readInt32() int
readInt64() Int64
readMessage(GeneratedMessage message, ExtensionRegistry extensionRegistry) → void
readSfixed32() int
readSfixed64() Int64
readSint32() int
readSint64() Int64
readString() String
readTag() int
readUint32() int
readUint64() Int64
readUnknownFieldSetGroup(int fieldNumber) UnknownFieldSet
skipField(int tag) bool
toString() String
A string representation of this object.
inherited

Operators

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

Constants

DEFAULT_RECURSION_LIMIT → const int
DEFAULT_SIZE_LIMIT → const int