Home
Using bit operations
If the programming language supports bit operations, perform the following steps:
- Select one of the following values, according to the type of encoding required:
- MQENC_INTEGER_MASK for the binary integer encoding
- MQENC_DECIMAL_MASK for the packed decimal integer encoding
- MQENC_FLOAT_MASK for the floating point encoding
Call the value
A.
- Combine the Encoding field with A using the bitwise AND operation; call the result
B.
B is the encoding required, and can be tested for equality with each of the values that is valid for that type of encoding.
Home