import { BinaryDataType } from "./BinaryDataType.js";

/***
 * Provides stable indices, mainly useful for serialization where other data is subject to change
 * @readonly
 * @enum {number}
 */
export const DataTypeIndices = {
    [BinaryDataType.Uint8]: 0,
    [BinaryDataType.Uint16]: 1,
    [BinaryDataType.Uint32]: 2,
    [BinaryDataType.Int8]: 3,
    [BinaryDataType.Int16]: 4,
    [BinaryDataType.Int32]: 5,
    [BinaryDataType.Float32]: 6,
    [BinaryDataType.Float64]: 7,
    [BinaryDataType.Float16]: 8
};
