The .drft container · function

readDtex

The material a DTEX chunk carries, as views over the fetched buffer.

Explained in The .drft container.

function readDtex(buffer: ArrayBuffer, offset: number, byteLength: number): DtexEntry
import { readDtex } 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.