code: static void setEmpty(final WritableMemory wmem) {
      int flags = wmem.getByte(FLAGS_BYTE) & 0XFF;
      flags |= EMPTY_FLAG_MASK;
      wmem.putByte(FLAGS_BYTE, (byte) flags);
    }
docs: TODO convert these to set/clear/any bits