Assert.assertEquals(3, buf.position());
Assert.assertEquals(2, buf.get(0));
Assert.assertEquals('A', buf.get(1));
Assert.assertEquals(' ', buf.get(2));
buf.sweep();
buf.putPrefixedString("A", 1, 4, (byte) 32, encoder);
Assert.assertEquals(5, buf.position());
Assert.assertEquals(4, buf.get(0));
Assert.assertEquals('A', buf.get(1));
Assert.assertEquals(' ', buf.get(2));