TCompactProtocol class

Inheritance

Constructors

TCompactProtocol.new(TTransport transport, [int stringLengthLimit = NO_LENGTH_LIMIT, int containerLengthLimit = NO_LENGTH_LIMIT])

Properties

booleanField_ TField?
getter/setter pair
boolValue_ ↔ dynamic
getter/setter pair
buffer Int8List
final
containerLengthLimit_ int
final
hashCode int
The hash code for this object.
no setterinherited
lastField_ ShortStack
getter/setter pair
lastFieldId_ int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringLengthLimit_ int
final
tempBD ByteData
final
tempList Int8List
final
trans_ TTransport
finalinherited
version_ int
getter/setter pair

Methods

bytesToInt(Int8List bytes) int
bytesToLongLE(Int8List bytes) → Int64
byteToLong(Int8List bytes) → Int64
checkContainerReadLength(int length) → void
checkContentReadLength(int length) → void
ensureContainerHasEnough(int size, int type) → void
inherited
ensureHasEnoughBytes(int minimumExpected) → void
inherited
ensureMapHasEnough(int size, int keyType, int valueType) → void
inherited
fixedLongToBytes(Int64 n, Int8List buf, int off) → void
getCompactType(int ttype) int
getTType(int type) int
intToZigZag(int n) int
isBoolType(int b) bool
longToZigzag(Int64 l) → Int64
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBinary([dynamic length]) 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
readVarint32() int
readVarint64() → Int64
removeTrailing7Bits(Int64 n) int
reset() → void
toString() String
A string representation of this object.
inherited
typeMinimumSize(int type) int
override
writeBinary(List<int>? bytes, [int offset = 0, int? length]) → void
override
writeBool(bool? b) → void
override
writeByte(int b) → void
override
writeByteDirect(int n) → void
writeCollectionBegin(int elemType, int size) → void
writeDouble(double? d) → void
override
writeFieldBegin(TField field) → void
override
writeFieldBeginInternal(TField field, int typeOverride) → void
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
writeVarint32(int n) → void
writeVarint64(Int64 n) → void
zigzagToInt(int n) int
zigzagToLong(Int64 n) → Int64

Operators

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

Static Properties

ANONYMOUS_STRUCT TStruct
final
TSTOP TField
final
ttypeToCompactType Int8List
final

Static Methods

fill() → dynamic

Constants

NO_LENGTH_LIMIT → const int
PROTOCOL_ID → const int
TYPE_BITS → const int
TYPE_MASK → const int
TYPE_SHIFT_AMOUNT → const int
VERSION → const int
VERSION_DOUBLE_BE → const int
VERSION_LOW → const int
VERSION_MASK → const int