Update README.md

This commit is contained in:
Takeshi YAMAMURO 2017-01-26 14:58:23 +09:00
parent 8b038c8ed4
commit 4f28bb679a
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ BitShuffle is an algorithm that reorders data bits (shuffle) for efficient compr
import org.xerial.snappy.BitShuffle;
int[] data = new int[] {1, 3, 34, 43, 34};
byte[] shuffledByteArray = BitShuffle.bitShuffle(data);
byte[] shuffledByteArray = BitShuffle.shuffle(data);
byte[] compressed = Snappy.compress(shuffledByteArray);
byte[] uncompressed = Snappy.uncompress(compressed);
int[] result = BitShuffle.bitUnShuffleIntArray(uncompress);
int[] result = BitShuffle.unshuffleIntArray(uncompress);
System.out.println(result);
```