assertEquals(5, buffer.skip(5));
byte[] b = new byte[4];
assertEquals(4, buffer.read(b));
assertEquals(6, buffer.getTotalPayloadLength());
assertEquals(6, buffer.skip(100));
assertEquals(0, buffer.skip(100));
assertTrue(buffer.isEmpty());
}
// Test to verify that skip works across buffer boundaries
private void _testStreamyLongerSkip(SegType aType) throws Exception