(int size)
| 34 | public Lz4Codec() {} |
| 35 | |
| 36 | protected static byte[] getBuffer(int size) { |
| 37 | byte[] result = threadBuffer.get(); |
| 38 | if (result == null || result.length < size || result.length > size * 2) { |
| 39 | result = new byte[size]; |
| 40 | threadBuffer.set(result); |
| 41 | } |
| 42 | return result; |
| 43 | } |
| 44 | |
| 45 | @Override |
| 46 | public Options getDefaultOptions() { |