/** * Decompress b-bit slots * @param outDecompSlots decompressed block which is the output * @param inCompBlock the compressed block which is the input * @param blockSize the block size * @param bits the value of the parameter b * @return the compressed size in bits of the data that has been decompressed */ public int decompressBBitSlots(int[] outDecompSlots, int[] inCompBlock, int blockSize, int bits) { int compressedBitSize = 0; int offset = HEADER_SIZE; for(int i =0; i<blockSize; i++) { outDecompSlots[i] = readBits(inCompBlock, offset, bits); offset += bits; } compressedBitSize = bits * blockSize; return compressedBitSize; }
/** * Decompress b-bit slots * * @param outDecompSlots * decompressed block which is the output * @param inCompBlock * the compressed block which is the input * @param blockSize * the block size * @param bits * the value of the parameter b * @return the compressed size in bits of the data that has been * decompressed */ public static int decompressBBitSlots(int[] outDecompSlots, int[] inCompBlock, int blockSize, int bits) { int compressedBitSize = 0; int offset = HEADER_SIZE; for (int i = 0; i < blockSize; i++) { outDecompSlots[i] = readBits(inCompBlock, offset, bits); offset += bits; } compressedBitSize = bits * blockSize; return compressedBitSize; }
/** * Decompress b-bit slots * @param outDecompSlots decompressed block which is the output * @param inCompBlock the compressed block which is the input * @param blockSize the block size * @param bits the value of the parameter b * @return the compressed size in bits of the data that has been decompressed */ public int decompressBBitSlots(int[] outDecompSlots, int[] inCompBlock, int blockSize, int bits) { int compressedBitSize = 0; int offset = HEADER_SIZE; for(int i =0; i<blockSize; i++) { outDecompSlots[i] = readBits(inCompBlock, offset, bits); offset += bits; } compressedBitSize = bits * blockSize; return compressedBitSize; }
/** * Decompress b-bit slots * @param outDecompSlots decompressed block which is the output * @param inCompBlock the compressed block which is the input * @param blockSize the block size * @param bits the value of the parameter b * @return the compressed size in bits of the data that has been decompressed */ public int decompressBBitSlots(int[] outDecompSlots, int[] inCompBlock, int blockSize, int bits) { int compressedBitSize = 0; int offset = HEADER_SIZE; for(int i =0; i<blockSize; i++) { outDecompSlots[i] = readBits(inCompBlock, offset, bits); offset += bits; } compressedBitSize = bits * blockSize; return compressedBitSize; }
/** * Decompress b-bit slots * * @param outDecompSlots * decompressed block which is the output * @param inCompBlock * the compressed block which is the input * @param blockSize * the block size * @param bits * the value of the parameter b * @return the compressed size in bits of the data that has been * decompressed */ public static int decompressBBitSlots(int[] outDecompSlots, int[] inCompBlock, int blockSize, int bits) { int compressedBitSize = 0; int offset = HEADER_SIZE; for (int i = 0; i < blockSize; i++) { outDecompSlots[i] = readBits(inCompBlock, offset, bits); offset += bits; } compressedBitSize = bits * blockSize; return compressedBitSize; }