class BytesSizedMarshaller implements SizedReader<Bytes<?>>, SizedWriter<Bytes<?>> {
    @Override
    public Bytes<?> read(Bytes in, long size, Bytes<?> using) {<FILL_FUNCTION_BODY>}

    @Override
    public long size(Bytes<?> toWrite) {
        return toWrite.readRemaining();
    }

    @Override
    public void write(Bytes out, long size, Bytes<?> toWrite) {
        out.write(toWrite, toWrite.readPosition(), size);
    }
}

        final int size0 = Maths.toInt32(size);
        if (using == null)
            using = Bytes.allocateElasticOnHeap(size0);

        in.read(using, size0);
        return using;
    
<no_super_class>