Examples of skipRead()


Examples of com.peterhi.runtime.BitStream.skipRead()

    BitStream bs0 = new BitStream(data, 0, Byte.SIZE * data.length);
    BitStream bs1 = new BitStream(data, 0, Byte.SIZE * data.length);
    assertEquals(1, bs0.readBit());
    assertEquals(1, bs1.readBit());
    bs0.alignRead();
    bs1.skipRead(7);
    assertEquals(1, bs0.readBit());
    assertEquals(1, bs1.readBit());
    assertEquals(7, bs0.available());
    assertEquals(7, bs1.available());

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.