forked from LupusNobilis/java-org.hwo
18 lines
306 B
Java
18 lines
306 B
Java
package org.hwo.test;
|
|
|
|
import org.hwo.buffer.BitStream;
|
|
|
|
public class BitStreamTest {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
BitStream bs = new BitStream(new byte[]{ 0x55,0x55,0x55,0x55 });
|
|
|
|
for (int i=0;i<6;i++)
|
|
System.err.println(String.format("Pattern: 0x%x",bs.read((byte)i)));
|
|
|
|
|
|
}
|
|
|
|
}
|