public BooleanSettingMap<S> decode(byte[] buf) {
        BitSet bits = BitSet.valueOf(buf);
        if (bits.length() > this.settings.length) {
            bits.clear(this.settings.length, bits.length());
        }
        return new BooleanSettingMap<>(this, bits);
    }
Decodes the given byte array to a {@link BooleanSettingMap}.

<p>Operates on the reverse of {@link BooleanSettingMap#encode()}.</p>

@param buf the byte array
@return the decoded map
helper/src/main/java/me/lucko/helper/setting/BooleanSettingMapFactory.java