VirtualIndexBuffer extends IndexBuffer { @Override public void rewind() { position = 0; } VirtualIndexBuffer(int numVerts, Mode meshMode); @Override int get(); @Override void rewind(); @Override int remaining(); @Override int get(int i); @Override IndexBuffer put(int i, int value); @Override int size(); @Override Buffer getBuffer(); @Override IndexBuffer put(int value); @Override Format getFormat();  }
@Test public void testRewind() { final VirtualIndexBuffer buffer = new VirtualIndexBuffer(5, Mode.Points); assertEquals(5, buffer.remaining()); buffer.get(); assertEquals(4, buffer.remaining()); buffer.rewind(); assertEquals(5, buffer.remaining()); }