Versions in this module Expand all Collapse all v0 v0.6.1 Jul 31, 2023 v0.0.4 Jul 31, 2023 Changes in this version + var Binary binaryProtocol + func ReadUnknownField(buf []byte, name string, fieldType thrift.TType, id int16) (length int, f *unknown.Field, err error) + func Skip(buf []byte, self BTProtocol, fieldType thrift.TType, maxDepth int) (length int, err error) + func SkipDefaultDepth(buf []byte, prot BTProtocol, typeID thrift.TType) (int, error) + func UnknownFieldsLength(fs unknown.Fields) (int, error) + func WriteUnknownFields(buf []byte, fs unknown.Fields) (offset int, err error) + type BTProtocol interface + BinaryLength func(value []byte) int + BinaryLengthNocopy func(value []byte) int + BoolLength func(value bool) int + ByteLength func(value int8) int + DoubleLength func(value float64) int + FieldBeginLength func(name string, typeID thrift.TType, id int16) int + FieldEndLength func() int + FieldStopLength func() int + I16Length func(value int16) int + I32Length func(value int32) int + I64Length func(value int64) int + ListBeginLength func(elemType thrift.TType, size int) int + ListEndLength func() int + MapBeginLength func(keyType, valueType thrift.TType, size int) int + MapEndLength func() int + MessageBeginLength func(name string, typeID thrift.TMessageType, seqid int32) int + MessageEndLength func() int + ReadBinary func(buf []byte) (value []byte, length int, err error) + ReadBool func(buf []byte) (value bool, length int, err error) + ReadByte func(buf []byte) (value int8, length int, err error) + ReadDouble func(buf []byte) (value float64, length int, err error) + ReadFieldBegin func(buf []byte) (name string, typeID thrift.TType, id int16, length int, err error) + ReadFieldEnd func(buf []byte) (int, error) + ReadI16 func(buf []byte) (value int16, length int, err error) + ReadI32 func(buf []byte) (value int32, length int, err error) + ReadI64 func(buf []byte) (value int64, length int, err error) + ReadListBegin func(buf []byte) (elemType thrift.TType, size, length int, err error) + ReadListEnd func(buf []byte) (int, error) + ReadMapBegin func(buf []byte) (keyType, valueType thrift.TType, size, length int, err error) + ReadMapEnd func(buf []byte) (int, error) + ReadMessageBegin func(buf []byte) (name string, typeID thrift.TMessageType, seqid int32, length int, err error) + ReadMessageEnd func(buf []byte) (int, error) + ReadSetBegin func(buf []byte) (elemType thrift.TType, size, length int, err error) + ReadSetEnd func(buf []byte) (int, error) + ReadString func(buf []byte) (value string, length int, err error) + ReadStructBegin func(buf []byte) (name string, length int, err error) + ReadStructEnd func(buf []byte) (int, error) + SetBeginLength func(elemType thrift.TType, size int) int + SetEndLength func() int + Skip func(buf []byte, fieldType thrift.TType) (length int, err error) + StringLength func(value string) int + StringLengthNocopy func(value string) int + StructBeginLength func(name string) int + StructEndLength func() int + WriteBinary func(buf, value []byte) int + WriteBinaryNocopy func(buf []byte, binaryWriter BinaryWriter, value []byte) int + WriteBool func(buf []byte, value bool) int + WriteByte func(buf []byte, value int8) int + WriteDouble func(buf []byte, value float64) int + WriteFieldBegin func(buf []byte, name string, typeID thrift.TType, id int16) int + WriteFieldEnd func(buf []byte) int + WriteFieldStop func(buf []byte) int + WriteI16 func(buf []byte, value int16) int + WriteI32 func(buf []byte, value int32) int + WriteI64 func(buf []byte, value int64) int + WriteListBegin func(buf []byte, elemType thrift.TType, size int) int + WriteListEnd func(buf []byte) int + WriteMapBegin func(buf []byte, keyType, valueType thrift.TType, size int) int + WriteMapEnd func(buf []byte) int + WriteMessageBegin func(buf []byte, name string, typeID thrift.TMessageType, seqid int32) int + WriteMessageEnd func(buf []byte) int + WriteSetBegin func(buf []byte, elemType thrift.TType, size int) int + WriteSetEnd func(buf []byte) int + WriteString func(buf []byte, value string) int + WriteStringNocopy func(buf []byte, binaryWriter BinaryWriter, value string) int + WriteStructBegin func(buf []byte, name string) int + WriteStructEnd func(buf []byte) int + type BinaryWriter interface + WriteDirect func(b []byte, remainCap int) error