Converts a boolean and put it in a byte array. @param bool the integer @param data the byte buffer in which the boolean will be placed @param offset the offset in the byte array @return the byte array
(boolean bool, byte[] data, int offset)
| 549 | * @return the byte array |
| 550 | */ |
| 551 | public static byte[] toBytes(boolean bool, byte[] data, int offset) { |
| 552 | data[offset] = (byte) (bool ? 1 : 0); |
| 553 | return data; |
| 554 | } |
| 555 | |
| 556 | /** |
| 557 | * Converts a byte array entry to boolean. |
no outgoing calls