Telegram TL v0.0.3-alpha TL.Binary

A few methods to work with binaries.

Summary

Functions

Split a binary in two at the given index

Converts the binary digit representation (of a signed integer) to a signed integer

Converts a (signed) integer to the smallest possible representation in a binary digit representation

Functions

binary_split(binary, index)

Split a binary in two at the given index.

decode_signed(binary)

Converts the binary digit representation (of a signed integer) to a signed integer.

encode_signed(int)

Converts a (signed) integer to the smallest possible representation in a binary digit representation.