(byte[] bytes)
| 51 | } |
| 52 | |
| 53 | public static ByteBuffer wrapBytes(byte[] bytes) { |
| 54 | ByteBuffer bb = ByteBuffer.wrap(bytes); |
| 55 | bb.order(ByteOrder.LITTLE_ENDIAN); |
| 56 | return bb; |
| 57 | } |
| 58 | |
| 59 | public static byte[] toBytes(int number) { |
| 60 | ByteBuffer bb = ByteBuffer.allocate(4); |
no outgoing calls
no test coverage detected