public int size() {
        return stream.size();
    }
@Test
    public void testSize() {
        writer.write(byteBuffer.asReadOnlyBuffer());
        int size = writer.size();
        Assertions.assertEquals(size, 13);
    }