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): NavPolyMeshimport { readNavm } from '@driftengine/drft';Parameters
| Parameter | Type | Description |
|---|---|---|
buffer | ArrayBuffer | |
offset | number | |
byteLength | number |
In depth
Views rather than copies, like every other chunk here, so a load allocates nothing beyond the object holding them.