@@ -0,0 +1,1315 @@
+package org.jerlang.erts.emulator;%0A%0A/**%0A * Flags for bs_get_* / bs_put_* / bs_init* instructions.%0A * %0A * Source:%0A * https://github.com/erlang/otp/blob/maint/erts/emulator/beam/erl_bits.h%0A */%0Apublic final class BitStringFlag %7B%0A%0A    /** Field is guaranteed to be byte-aligned. */%0A    private static final int BSF_ALIGNED = 1;%0A%0A    /** Field is little-endian (otherwise big-endian). */%0A    private static final int BSF_LITTLE = 2;%0A%0A    /** Field is signed (otherwise unsigned). */%0A    private static final int BSF_SIGNED = 4;%0A%0A    /** Size in bs_init is exact. */%0A    private static final int BSF_EXACT = 8;%0A%0A    /** Native endian. */%0A    private static final int BSF_NATIVE = 16;%0A%0A    public static final boolean isAligned(int flag) %7B%0A        return (flag & BSF_ALIGNED) == BSF_ALIGNED;%0A    %7D%0A%0A    public static final boolean isExact(int flag) %7B%0A        return (flag & BSF_EXACT) == BSF_EXACT;%0A    %7D%0A%0A    public static final boolean isLittle(int flag) %7B%0A        return (flag & BSF_LITTLE) == BSF_LITTLE;%0A    %7D%0A%0A    public static final boolean isNative(int flag) %7B%0A        return (flag & BSF_NATIVE) == BSF_NATIVE;%0A    %7D%0A%0A    public static final boolean isSigned(int flag) %7B%0A        return (flag & BSF_SIGNED) == BSF_SIGNED;%0A    %7D%0A%0A    private BitStringFlag() %7B%0A        // You can not instantiate this class.%0A    %7D%0A%0A%7D%0A

Add BitString flags