/** * @import { AppBase } from '../app-base.js' */ /** * Resource handler for the `binary` asset type. Loads a file as an `ArrayBuffer` without * interpreting its contents. * * @category Asset */ export class BinaryHandler extends ResourceHandler { /** * Create a new BinaryHandler instance. * * @param {AppBase} app - The running {@link AppBase}. * @ignore */ constructor(app: AppBase); /** * Returns the bytes covered by a DataView as a new ArrayBuffer. * * @param {DataView} data - The raw data as a DataView. * @returns {ArrayBuffer} The parsed resource data. * @ignore */ openBinary(data: DataView): ArrayBuffer; } import { ResourceHandler } from './handler.js'; import type { AppBase } from '../app-base.js';