presto-orc/src/main/java/io/prestosql/orc/stream/ByteArrayOutputStream.java/ByteArrayOutputStream/writeSlice
class ByteArrayOutputStream:    public void writeSlice(Slice value)
    {
        checkState(!closed);
        buffer.writeBytes(value);
    }