(byte[] bytes)
| 22 | } |
| 23 | |
| 24 | public Float buldFromBytes(byte[] bytes) { |
| 25 | if (bytes.length != getBytesAllocated()) { |
| 26 | throw new IllegalArgumentException( |
| 27 | "To build from byte array I need array of size: " |
| 28 | + getBytesAllocated()); |
| 29 | } |
| 30 | return ByteBuffer.wrap(bytes).getFloat(); |
| 31 | } |
| 32 | |
| 33 | public byte[] getByteArray(Float value) { |
| 34 | int byteAllocated = getBytesAllocated(); |
nothing calls this directly
no test coverage detected