Thursday, 2 August 2018

Best way to read/write/parse complex binary files in node.js

Since i'm planning to use electron + angular, i was wondering if there actually are any good ways to parse binary files.In C# marshaling would be used to define if something is uint/int/byte array of some size/ byte etc - and i would use that class to read/write data and modify in between.In c++ struct and memcopy would do that.I am looking at possibly ~40 files with different structures - some extend each other.Usually a mix of int, uint, byte, 32 or 64 byte arrays, float and arrays of subclass/struct with (like 4x uint, float fields).The files got a header for the count of the structures it repeats.How about node.js - anything good exists for that? Any library that could handle it - both read and write with editing somewhere else in between and easier way to manage large number of "structure" definitions?

Submitted August 02, 2018 at 10:00PM by dustofdeath

No comments:

Post a Comment