package
0.108.0
Repository: https://github.com/gotd/td.git
Documentation: pkg.go.dev

# Functions

NewPool creates new Pool.
NewUnexpectedID return new UnexpectedIDErr.

# Constants

PreallocateLimit is a vector pre-allocation limit.
bytes#e937bb82 = Bytes.
double = Double (0x2210c154).
boolFalse#bc799737 = Bool.
int = Int (0xa8509bda).
long = Long (0x22076cba).
string = String (0xb5286e24).
boolTrue#997275b5 = Bool.
vector {t:Type} # [ t ] = Vector t.
Word represents 4-byte sequence.

# Structs

Buffer implements low level binary (de-)serialization for TL.
InvalidLengthError is returned when decoder reads invalid length.
Pool is a bin.Buffer pool.
UnexpectedIDErr means that unknown or unexpected type id was decoded.

# Interfaces

BareDecoder can decode it's binary form from Buffer.
BareEncoder can encode it's binary form to Buffer.
Decoder can decode it's binary form from Buffer.
Encoder can encode it's binary form to Buffer.
Object wraps Decoder and Encoder interface and represents TL Object.

# Type aliases

Fields represent a bitfield value that compactly encodes information about provided conditional fields, e.g.
Int128 represents signed 128-bit integer.
Int256 represents signed 256-bit integer.