public static int getOpCodeLength(final int mostSignificantOpcodeByte) {
        if (mostSignificantOpcodeByte < 0x80) {
            return 1;
        } else if (/*mostSignificantOpcodeByte >= 0x80 &&*/ mostSignificantOpcodeByte <= 0xBF) {
            return 2;
        } else {
            return 3;
        }
    }
Returns the length of the opcode.
If the MSB = 0 then the length is 1
If the MSB = 1 then the length is 2
If the MSB = 2 then the length is 3

@param mostSignificantOpcodeByte operation code
@return length of opcodes
mesh/src/main/java/no/nordicsemi/android/mesh/utils/MeshParserUtils.java