Package com.ning.compress.lzf

Examples of com.ning.compress.lzf.ChunkEncoder


        // and then the hash table is reused and still thinks that there is such a hash at position 6
        // and at position 7, it finds a sequence with the same hash
        // so it inserts a buggy reference
        byte[] b1 = new byte[] {0,1,2,3,4,(byte)153,64,64,64,9,9,9,9,9,9,9,9,9,9};
        byte[] b2 = new byte[] {1,(byte)153,0,0,0,0,(byte)153,64,64,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
        ChunkEncoder encoder = ChunkEncoderFactory.safeInstance();
        ChunkDecoder decoder = ChunkDecoderFactory.safeInstance();
        check(encoder, decoder, b1, 0, b1.length);
        final int off = 6;
        check(encoder, decoder, b2, off, b2.length - off);
    }
View Full Code Here

TOP

Related Classes of com.ning.compress.lzf.ChunkEncoder

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.