The .drft container · function

readNavm

The mesh a NAVM chunk carries, as views over the fetched buffer.

Explained in The .drft container.

function readNavm(buffer: ArrayBuffer, offset: number, byteLength: number): NavPolyMesh
import { readNavm } from '@driftengine/drft';

Parameters

ParameterTypeDescription
bufferArrayBuffer
offsetnumber
byteLengthnumber

In depth

Views rather than copies, like every other chunk here, so a load allocates nothing beyond the object holding them.