inbuffer.fillBuffer();
byte[] tmp = new byte[3];
inbuffer.read(tmp);
int i = inbuffer.indexOf((byte)'z', inbuffer.pos(), inbuffer.length());
assertEquals(-1, i);
i = inbuffer.indexOf((byte)'g', inbuffer.pos(), inbuffer.length() - 3);
assertEquals(-1, i);
}
public void test0xFFInBinaryStream() throws Exception {
byte[] b1 = new byte[] {1, 2, 3, (byte) 0xff, 10, 1, 2, 3};