Telegram TL v0.0.7-alpha TL.Binary

Helpers to work with binaries.

Summary

Functions

Split a binary at the given index

Converts the binary representation (of a signed integer) to its decimal representation

Converts a (signed) integer to its binary representation

Functions

binary_split(binary, index)

Split a binary at the given index.

decode_signed(binary)

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

encode_signed(int)

Converts a (signed) integer to its binary representation.