@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
80 lines • 2.13 kB
TypeScript
/**
* This is a schema class for binary data tables of class {@link RowFirstTable}
* @class
* @copyright Company Named Limited (c) 2025
* @author Alex Goldring
*/
export class RowFirstTableSpec {
/**
* Produces an immutable spec, either creates a new spec or retrieves a cached version
* @param {BinaryDataType[]} types
* @param {EndianType} [endianType]
* @returns {RowFirstTableSpec}
*/
static get(types: BinaryDataType[], endianType?: EndianType): RowFirstTableSpec;
/**
*
* @param {BinaryDataType[]} types
* @param {EndianType} [endianness]
* @constructor
*/
constructor(types: BinaryDataType[], endianness?: EndianType);
/**
* @readonly
* @type {BinaryDataType[]}
*/
readonly types: BinaryDataType[];
/**
* @readonly
* @type {EndianType}
*/
readonly endianType: EndianType;
/**
* @readonly
* @type {Uint32Array}
*/
readonly columnOffsets: Uint32Array;
/**
* Number of bytes taken up by a single row of values
* @readonly
* @type {number}
*/
readonly bytesPerRecord: number;
/**
* @readonly
* @type {function(DataView, number, number[]): void}
*/
readonly readRowMethod: (arg0: DataView, arg1: number, arg2: number[]) => void;
/**
* @readonly
* @type {function(DataView, number, number[]): void}
*/
readonly writeRowMethod: (arg0: DataView, arg1: number, arg2: number[]) => void;
cellWriters: any[];
cellReaders: any[];
/**
*
* @return {number}
*/
getColumnCount(): number;
/**
*
* @return {number}
*/
hash(): number;
/**
*
* @param {RowFirstTableSpec} other
* @returns {boolean}
*/
equals(other: RowFirstTableSpec): boolean;
toString(): string;
/**
* @readonly
* @type {boolean}
*/
readonly isRowFirstTableSpec: boolean;
}
import { BinaryDataType } from "../../binary/type/BinaryDataType.js";
import { EndianType } from "../../binary/EndianType.js";
//# sourceMappingURL=RowFirstTableSpec.d.ts.map