How to read a whole binary file (Nippy) into byte array in Clojure?

前端 未结 6 1487
Happy的楠姐
Happy的楠姐 2021-01-12 18:05

I need to convert Nippy data structures stored on disk into something that can be read by Nippy? Nippy uses byte arrays, so I need some way to convert the file into a byte a

6条回答
  •  甜味超标
    2021-01-12 18:39

    Please note that I just cut Nippy v2.13.0 which now includes a pair of helper utils to help simplify this use case: freeze-to-file and thaw-from-file.

    Release details at: https://github.com/ptaoussanis/nippy/releases/tag/v2.13.0

    Cheers!

提交回复
热议问题