Hey Sam,
I don’t know if its compatible with newer formats of UNICORN files, but I was using PyCORN (GitHub - pyahmed/PyCORN: A script to extract data from ÄKTA/UNICORN result-files (.res)) for my UNICORN 5.4 files a lot. It also includes the file format layout, describing the raw format and how to read it byte-by-byte. So its basically possibe to port it to other languages.
Jan