Package xbird.util.io

Examples of xbird.util.io.BitInputStream


            int firstException = dis.readInt();
            int len = dis.readInt();
            byte[] b = new byte[len];
            dis.readFully(b, 0, len);
            FastByteArrayInputStream codesIs = new FastByteArrayInputStream(b);
            BitInputStream codesBis = new BitInputStream(codesIs);
            int[] codes = new int[totalEntries];
            unpack(codesBis, bitwidth, codes, totalEntries);
            int exceptions = dis.readShort();
            CharArrayList exceptionList = new CharArrayList(exceptions);
            for(int i = 0; i < exceptions; i++) {
View Full Code Here


        return ret;
    }

    public static long decodeGolombL(final InputStream in, final long m, final int logm)
            throws IOException {
        final BitInputStream bis = new BitInputStream(in);

        long unary = 0;
        while(!bis.readBit()) {// loop until '1' is found
            unary++;
        }

        /* Get the first q bits (we may need (q+1) actually) */
        long remainder = BitUtils.getLongBits(bis, logm);
View Full Code Here

            int firstException = dis.readInt();
            int len = dis.readInt();
            byte[] b = new byte[len];
            dis.readFully(b, 0, len);
            FastByteArrayInputStream codesIs = new FastByteArrayInputStream(b);
            BitInputStream codesBis = new BitInputStream(codesIs);
            int[] codes = new int[totalEntries];
            unpack(codesBis, bitwidth, codes, totalEntries);
            int exceptions = dis.readShort();
            CharArrayList exceptionList = new CharArrayList(exceptions);
            for(int i = 0; i < exceptions; i++) {
View Full Code Here

        return ret;
    }

    public static long decodeGolombL(final InputStream in, final long m, final int logm)
            throws IOException {
        final BitInputStream bis = new BitInputStream(in);

        long unary = 0;
        while(!bis.readBit()) {// loop until '1' is found
            unary++;
        }

        /* Get the first q bits (we may need (q+1) actually) */
        long remainder = BitUtils.getLongBits(bis, logm);
View Full Code Here

TOP

Related Classes of xbird.util.io.BitInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.