Jump to: navigation, search

TEventMask

Syntax

#define T_MASK_LENGTH 64;
typedef unsigned char TMask[T_MASK_LENGTH];
#define TMaskSetAll(M) memset((M), 0xff, T_MASK_LENGTH)
#define TMaskClearAll(M) memset((M), 0, T_MASK_LENGTH)
#define TMaskSet(E, M) ((M)[(E) / 8] |= (1 << ((E) % 8)))
#define TMaskClear(E, M) ((M)[(E)/8] &= ~(1 << ((E) % 8)))
#define TMaskIsSet(E, M) ((M)[(E) / 8] & (1 << ((E) % 8)))

Comments

Important
The associated macros defined in the syntax for this type are used to set and clear the user-defined input mask.

For setting and clearing the user-defined input mask, use:

  • TMaskSetAll
  • TMaskClearAll
  • TMaskSet
  • TMaskClear

For checking the server capabilities mask returned by TQueryServer(), use TMaskIsSet().

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on June 27, 2017, at 12:21.