Documentation ¶
Index ¶
- Variables
- func GetBufWithGZip(bin []byte) []byte
- type DecodeBuf
- func (m *DecodeBuf) BigInt() *big.Int
- func (m *DecodeBuf) Bool() bool
- func (m *DecodeBuf) Bytes(size int) []byte
- func (m *DecodeBuf) Double() float64
- func (m *DecodeBuf) Int() int32
- func (m *DecodeBuf) Long() int64
- func (m *DecodeBuf) Object() (r TL)
- func (m *DecodeBuf) String() string
- func (m *DecodeBuf) StringBytes() []byte
- func (m *DecodeBuf) UInt() uint32
- func (m *DecodeBuf) Vector() []TL
- func (m *DecodeBuf) VectorDouble() []float64
- func (m *DecodeBuf) VectorInt() []int32
- func (m *DecodeBuf) VectorLong() []int64
- func (m *DecodeBuf) VectorString() []string
- type EncodeBuf
- func (e *EncodeBuf) BigInt(s *big.Int)
- func (e *EncodeBuf) Bytes(s []byte)
- func (e *EncodeBuf) Double(s float64)
- func (e *EncodeBuf) GetBuf() []byte
- func (e *EncodeBuf) Int(s int32)
- func (e *EncodeBuf) Long(s int64)
- func (e *EncodeBuf) String(s string)
- func (e *EncodeBuf) StringBytes(s []byte)
- func (e *EncodeBuf) UInt(s uint32)
- func (e *EncodeBuf) Vector(v []TL)
- func (e *EncodeBuf) VectorDouble(v []float64)
- func (e *EncodeBuf) VectorInt(v []int32)
- func (e *EncodeBuf) VectorLong(v []int64)
- func (e *EncodeBuf) VectorString(v []string)
- type TL
- type TL_boolFalse_layer0
- type TL_boolTrue_layer0
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CRC32_TL_vector_layer0 uint32 = 0x1cb5c415 CRC32_TL_gzip_packed_layer0 uint32 = 0x3072cfa1 CRC32_TL_boolFalse_layer0 uint32 = 0xbc799737 CRC32_TL_boolTrue_layer0 uint32 = 0x997275b5 )
View Source
var DefaultDecodeMap = make(map[uint32]func(m *DecodeBuf) TL)
View Source
var TLErrByTLRepeatReg = errors.New("tl repeat")
Functions ¶
func GetBufWithGZip ¶
Types ¶
type DecodeBuf ¶
type DecodeBuf struct {
// contains filtered or unexported fields
}
func NewDecodeBuf ¶
func (*DecodeBuf) StringBytes ¶
func (*DecodeBuf) VectorDouble ¶
func (*DecodeBuf) VectorLong ¶
func (*DecodeBuf) VectorString ¶
type EncodeBuf ¶
type EncodeBuf struct {
// contains filtered or unexported fields
}
func NewEncodeBuf ¶
func (*EncodeBuf) StringBytes ¶
func (*EncodeBuf) VectorDouble ¶
func (*EncodeBuf) VectorLong ¶
func (*EncodeBuf) VectorString ¶
type TL_boolFalse_layer0 ¶
type TL_boolFalse_layer0 struct { }
begin of 'boolFalse#bc799737 = Bool;'
func NewTL_boolFalse_layer0 ¶
func NewTL_boolFalse_layer0() *TL_boolFalse_layer0
func (*TL_boolFalse_layer0) CRC32 ¶
func (*TL_boolFalse_layer0) CRC32() uint32
func (*TL_boolFalse_layer0) Decode ¶
func (tl *TL_boolFalse_layer0) Decode(m *DecodeBuf) TL
func (*TL_boolFalse_layer0) Encode ¶
func (*TL_boolFalse_layer0) Encode() []byte
func (*TL_boolFalse_layer0) GetLayer ¶
func (*TL_boolFalse_layer0) GetLayer() int32
type TL_boolTrue_layer0 ¶
type TL_boolTrue_layer0 struct { }
func NewTL_boolTrue_layer0 ¶
func NewTL_boolTrue_layer0() *TL_boolTrue_layer0
func (*TL_boolTrue_layer0) CRC32 ¶
func (*TL_boolTrue_layer0) CRC32() uint32
func (*TL_boolTrue_layer0) Decode ¶
func (tl *TL_boolTrue_layer0) Decode(m *DecodeBuf) TL
func (*TL_boolTrue_layer0) Encode ¶
func (*TL_boolTrue_layer0) Encode() []byte
func (*TL_boolTrue_layer0) GetLayer ¶
func (*TL_boolTrue_layer0) GetLayer() int32
Click to show internal directories.
Click to hide internal directories.