safeDecodeBitmaskValue

Reads dataSize number of bytes from the array's current position, and then increments the position. Returns a UInt representing the MAVLink bitmask value. If there are not enough bytes in the array, it assumes that the remaining length is padded with zeroes.