Documentation / @andrew_l/tl-pack / tlDecode
Function: tlDecode()
tlDecode<
T
>(buffer
,opts
?):T
Decode value from Uint8Array
Type Parameters
• T = any
Parameters
• buffer: Uint8Array
• opts?: BinaryReaderOptions
Returns
T
Example
ts
const buffer = new Uint8Array([5, 0, 0, 0, 0, 0, 0, 0, 0]);
const value = tlDecode(buffer);
console.log(value); // Thu Jan 01 1970 01:00:00 GMT+0100 (Central European Standard Time)