(byte[] bytes)
| 134 | } |
| 135 | |
| 136 | public Double buldFromBytes(byte[] bytes) { |
| 137 | if (bytes.length != getBytesAllocated()) { |
| 138 | throw new IllegalArgumentException( |
| 139 | "To build from byte array I need array of size: " |
| 140 | + getBytesAllocated()); |
| 141 | } |
| 142 | return ByteBuffer.wrap(bytes).getDouble(); |
| 143 | |
| 144 | } |
| 145 | |
| 146 | public byte[] getByteArray(Double value) { |
| 147 | int byteAllocated = getBytesAllocated(); |
nothing calls this directly
no test coverage detected