Parsing of binary data with scala

前端 未结 5 2050
野趣味
野趣味 2020-12-15 23:38

I need to parse some simple binary Files. (The files contains n entries which consists of several signed/unsigned Integers of different sizes etc.)

In the moment i d

5条回答
  •  旧时难觅i
    2020-12-16 00:09

    Scala itself doesn't have a binary data input library, but the java.nio package does a decent job. It doesn't explicitly handle unsigned data--neither does Java, so you need to figure out how you want to manage it--but it does have convenience "get" methods that take byte order into account.

提交回复
热议问题