HDF-NI / hdf5.node

A node module for reading/writing the HDF5 file format.
MIT License
123 stars 40 forks source link

Add support for Uint64 and Int64 table entry #64

Closed NINI1988 closed 6 years ago

NINI1988 commented 6 years ago

I hope its a good idea.

Example Usage:

const table = new Array();

const idCol = new Array(1);
idCol.name = 'id';
idCol.type = H5Type.H5T_NATIVE_LLONG;
idCol[0] = 12;
table.push(idCol);

const timestampCol = new Array(1);
timestampCol.name = 'timestamp';
timestampCol.type = H5Type.H5T_NATIVE_ULLONG;
timestampCol[0] = 5534023222126287257;
table.push(timestampCol);

const tempModeCol= new Int8Array(1);
tempModeCol.name = 'mode';
tempModeCol[0] = 0;
table.push(tempModeCol);

h5tb.makeTable(file.id, 'infos', table);