setKeyAndMask static method
Set key and mask in the address buffer. Modifies the provided ByteBuffer's position and writes the keyAndMask value.
@param addr The ByteBuffer representing the address. @param keyAndMask The key and mask value (integer).
Implementation
static void setKeyAndMask(ByteBuffer addr, int keyAndMask) {
addr.position(28); // Set position to byte 28
addr.putInt(keyAndMask); // Write the integer value
}