Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/compress/utils/uint8.ts>readMsg

compress and uncompress for Deno
Latest
function readMsg
import { readMsg } from "https://deno.land/x/compress@v0.5.0/utils/uint8.ts";

Reads a message from the provided Deno.Reader instance.

Parameters

reader: Reader
  • The Deno.Reader instance to read from.

Returns

Promise<Uint8Array | null>

A Promise that resolves to a Uint8Array or null if no more data is available.