/** * Helper method that checks resulting size of an LZF chunk, regardless of * whether it contains compressed or uncompressed contents. */ public static int calculateUncompressedSize(byte[] data, int offset, int length) throws LZFException { return ChunkDecoder.calculateUncompressedSize(data, length, length); }
/** * Helper method that checks resulting size of an LZF chunk, regardless of * whether it contains compressed or uncompressed contents. */ public static int calculateUncompressedSize(byte[] data, int offset, int length) throws LZFException { return ChunkDecoder.calculateUncompressedSize(data, length, length); }
/** * Helper method that checks resulting size of an LZF chunk, regardless of * whether it contains compressed or uncompressed contents. */ public static int calculateUncompressedSize(byte[] data, int offset, int length) throws LZFException { return ChunkDecoder.calculateUncompressedSize(data, length, length); }
/** * Method for decompressing a block of input data encoded in LZF * block structure (compatible with lzf command line utility), * and can consist of any number of blocks. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer, int inputPtr, int inputLen) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, inputPtr, inputLen)]; decode(inputBuffer, inputPtr, inputLen, result); return result; }
/** * Method for decompressing a block of input data encoded in LZF * block structure (compatible with lzf command line utility), * and can consist of any number of blocks. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer, int inputPtr, int inputLen) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, inputPtr, inputLen)]; decode(inputBuffer, inputPtr, inputLen, result); return result; }
/** * Method for decompressing a block of input data encoded in LZF * block structure (compatible with lzf command line utility), * and can consist of any number of blocks. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, 0, inputBuffer.length)]; decode(inputBuffer, 0, inputBuffer.length, result); return result; }
/** * Method for decompressing a block of input data encoded in LZF * block structure (compatible with lzf command line utility), * and can consist of any number of blocks. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, 0, inputBuffer.length)]; decode(inputBuffer, 0, inputBuffer.length, result); return result; }
/** * Method for decompressing a block of input data encoded in LZF * block structure (compatible with lzf command line utility), * and can consist of any number of blocks. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, 0, inputBuffer.length)]; decode(inputBuffer, 0, inputBuffer.length, result); return result; }
/** * Method for decompressing a block of input data encoded in LZF * block structure (compatible with lzf command line utility), * and can consist of any number of blocks. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer, int inputPtr, int inputLen) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, inputPtr, inputLen)]; decode(inputBuffer, inputPtr, inputLen, result); return result; }