(byte[] buf, int index)
| 517 | } |
| 518 | |
| 519 | public static int readLe32(byte[] buf, int index) { |
| 520 | return buf[index] & 0xFF | (buf[index + 1] << 8) & 0xff00 |
| 521 | | (buf[index + 2] << 16) & 0xff0000 | (buf[index + 3] << 24) & 0xff000000; |
| 522 | } |
| 523 | |
| 524 | public static int readLe16(byte[] buf, int off) { |
| 525 | return (buf[off] & 0xFF) | ((buf[off + 1] << 8) & 0xff00); |
no outgoing calls
no test coverage detected