UNPKG

@xogeny/mat-parser

Version:

A parser for MATLAB v4 files

19 lines (18 loc) 554 B
/// <reference types="node" /> export declare enum DataFormat { Float64 = 0, Float32 = 1, Int32 = 2, Int16 = 3, UInt16 = 4, UInt8 = 5 } export declare function dataSize(format: DataFormat, n: number): number; export declare function readOne(info: Array<any>, format: DataFormat, buffer: Buffer): Buffer; export declare enum MatrixType { FullNumeric = 0, SparseNumeric = 1, Text = 2 } export declare function dataType(n: string): DataFormat; export declare function matrixType(n: string): MatrixType;