Reads a single byte value.
Reads an integer (4 bytes or 32 bits) value.
Reads a long integer (8 bytes or 64 bits) value.
Reads a real floating point (4 bytes) value.
Reads a real floating point (8 bytes) value.
Reads a n-bits long integer value.
Read the given amount of bytes, or -1 to read all remaining.
whether to check if the length overflows or not.
Gets the byte array representing the current buffer as a whole.
Reads a Telegram-encoded byte array, without the need of specifying its length.
Reads a Telegram-encoded string.
Reads a Telegram boolean value.
Reads and converts Unix time (used by Telegram) into a Javascript {Date} object.
Reads a Telegram object.
Reads a vector (a list) of Telegram objects.
Tells the current position on the stream.
Sets the current position on the stream.
Seeks the stream position given an offset from the current position. The offset may be negative.
Generated using TypeDoc
Small utility class to read binary data.