TBinaryProtocol class

Binary protocol implementation for Thrift.

Adapted from the C# version.

Inheritance

Constructors

TBinaryProtocol.new(TTransport transport, {bool strictRead = false, bool strictWrite = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strictRead bool
final
strictWrite bool
final
trans_ TTransport
finalinherited

Methods

ensureContainerHasEnough(int size, int type) → void
inherited
ensureHasEnoughBytes(int minimumExpected) → void
inherited
ensureMapHasEnough(int size, int keyType, int valueType) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBinary() Int8List
override
readBool() bool
override
readByte() int
override
readDouble() double
override
readFieldBegin() TField
override
readFieldEnd() → void
override
readI16() int
override
readI32() int
override
readI64() int
override
readListBegin() TList
override
readListEnd() → void
override
readMapBegin() TMap
override
readMapEnd() → void
override
readMessageBegin() TMessage
read
override
readMessageEnd() → void
override
readSetBegin() TSet
override
readSetEnd() → void
override
readString() String
override
readStructBegin() TStruct
override
readStructEnd() → void
override
toString() String
A string representation of this object.
inherited
typeMinimumSize(int type) int
inherited
writeBinary(Int8List? bytes) → void
override
writeBool(bool? b) → void
override
writeByte(int? b) → void
override
writeDouble(double? d) → void
override
writeFieldBegin(TField field) → void
override
writeFieldEnd() → void
override
writeFieldStop() → void
override
writeI16(int? i16) → void
override
writeI32(int? i32) → void
override
writeI64(int? i64) → void
override
writeListBegin(TList list) → void
override
writeListEnd() → void
override
writeMapBegin(TMap map) → void
override
writeMapEnd() → void
override
writeMessageBegin(TMessage message) → void
write
override
writeMessageEnd() → void
override
writeSetBegin(TSet set) → void
override
writeSetEnd() → void
override
writeString(String? str) → void
override
writeStructBegin(TStruct struct) → void
override
writeStructEnd() → void
override

Operators

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

Constants

VERSION_1 → const int
VERSION_MASK → const int