Skip to content

Commit da7049e

Browse files
committed
readme
1 parent 69bff64 commit da7049e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The packaged JARs contain binaries for Windows, Mac OS (x86_64 only) and Linux.
99
import dev.zarr.bloscjava.Blosc;
1010

1111
// Generate some random data
12-
int SIZE = 100 * 100 * 100;
12+
int SIZE = 1000000;
1313
byte[] buf = new byte[SIZE];
1414
for (int i = 0; i < SIZE; i++) {
1515
buf[i] = (int)(i % 24);
@@ -23,7 +23,15 @@ assert Arrays.equals(buf, decompressedBuf);
2323

2424
### API
2525
```java
26-
byte[] compress(byte[] src, int typeSize, Compressor compressor, int compressorLevel, Shuffle shuffle, int blockSize, int numThreads)
26+
byte[] compress(
27+
byte[] src,
28+
int typeSize,
29+
Blosc.Compressor compressor,
30+
int compressorLevel,
31+
Blosc.Shuffle shuffle,
32+
int blockSize,
33+
int numThreads
34+
)
2735
```
2836

2937
- `src`: Byte array to be compressed. Required.

0 commit comments

Comments
 (0)