(byte[] bytes)
| 130 | } |
| 131 | |
| 132 | public Long buldFromBytes(byte[] bytes) { |
| 133 | if (bytes.length != getBytesAllocated()) { |
| 134 | throw new IllegalArgumentException( |
| 135 | "To build from byte array I need array of size: " |
| 136 | + getBytesAllocated()); |
| 137 | } |
| 138 | return ByteBuffer.wrap(bytes).getLong(); |
| 139 | } |
| 140 | |
| 141 | public int getBytesAllocated() { |
| 142 | return Long.SIZE >> 3; |
nothing calls this directly
no test coverage detected