Writing the buffer directly here assumes that the input data is in little-endian order, which won't always be the case.  If the format supports it, you may want to use the input data's endianness as the output endianness; otherwise, byte swapping will need to occur.  ```meta.getPixelsBinDataBigEndian(series, 0)``` will return whether or not the input data is big-endian.