public final void writeBoolean(final boolean v) {
        ab[aboffset++] = (byte) (v ? 1 : 0);
    }
fast data-writing to a byte-array

@author ab
main/src/main/java/cgeo/geocaching/brouter/util/ByteDataWriter.java