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