Skip to main content
function readRawPointer
import { readRawPointer } from "https://deno.land/x/capnp_ts@0.1.0/mod.ts";

Read a pointer in raw form (a packed message with framing headers). Does not care or attempt to validate the input beyond parsing the message segments.

This is typically used by the compiler to load default values, but can be useful to work with messages with an unknown schema.

Parameters

data: ArrayBuffer

The raw data to read.

Returns

A root pointer.