pod5-file-format icon indicating copy to clipboard operation
pod5-file-format copied to clipboard

little and big endian support

Open Psy-Fer opened this issue 8 months ago • 0 comments

Hello,

I see arrow has methods for converting between endianess and the write_footer() looks like it should handle big or little https://github.com/nanoporetech/pod5-file-format/blob/2b2c29f01e3e6c80c4028edacbc0500235c00001/c%2B%2B/pod5_format/internal/combined_file_utils.h#L128

Just wondering if there is full compatibility? There are a few cases that look like this

https://github.com/nanoporetech/pod5-file-format/blob/2b2c29f01e3e6c80c4028edacbc0500235c00001/c%2B%2B/pod5_format/svb16/streamvbytedelta_encode_16.c#L26

memcpy(dataPtr, &val, 2);  // assumes little endian

Cheers, James

Psy-Fer avatar Apr 16 '25 02:04 Psy-Fer