I use a library Nagato read data from a socket, which creates arrays byte[]that are accepted through the delegate function.
My question is, how can I convert this byte array to specific data types, knowing the alignment?
For example, if the byte array contains the following data, in order:
| byte | byte | short | byte | int | int |
How can I extract these data types (in a bit endian )?
source
share