presto-orc/src/main/java/io/prestosql/orc/stream/BooleanOutputStream.java/BooleanOutputStream/writeBoolean
class BooleanOutputStream:    public void writeBoolean(boolean value)
    {
        checkState(!closed);

        if (value) {
            data |= 0x1 << (7 - bitsInData);
        }
        bitsInData++;

        if (bitsInData == 8) {
            flushData();
        }
    }