mtcute/packages/tl-runtime/src/platform.ts

9 lines
250 B
TypeScript
Raw Normal View History

/**
* Platform-specific functions used by {@link TlBinaryReader} and {@link TlBinaryWriter}
*/
export interface ITlPlatform {
utf8Encode(str: string): Uint8Array
utf8Decode(buf: Uint8Array): string
utf8ByteLength(str: string): number
}