presto-rcfile/src/main/java/io/prestosql/rcfile/BufferedOutputStreamSliceOutput.java/BufferedOutputStreamSliceOutput/getFreeBufferLength
class BufferedOutputStreamSliceOutput:    private int getFreeBufferLength()
    {
        return CHUNK_SIZE - bufferPosition;
    }