Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/grm/src/extensions/interfaces.ts>BinaryReader

MTProto API Client for Deno 🦕
Go to Latest
interface BinaryReader
import { type BinaryReader } from "https://deno.land/x/grm@0.5.4/src/extensions/interfaces.ts";

Properties

offset: number

Methods

read(length?: number, checkLength?: boolean): Buffer
readByte(): number
readInt(signed?: boolean): number
readLargeInt(bits: number, signed?: boolean): bigInt.BigInteger
readLong(signed?: boolean): bigInt.BigInteger
readFloat(): number
readDouble(): number
getBuffer(): Buffer
tgReadBytes(): Buffer
tgReadString(): string
tgReadBool(): boolean
tgReadDate(): Date
seek(offset: number): void
setPosition(position: number): void
tellPosition(): number
tgReadObject(): any
tgReadVector(): any[]