ID is an unsigned integer that uniquely identifies the event. Handy for bitmask operations.
()
| 596 | // identifies the event. Handy for bitmask |
| 597 | // operations. |
| 598 | func (t Type) ID() uint { |
| 599 | id := uint(t[0])<<56 | |
| 600 | uint(t[1])<<48 | |
| 601 | uint(t[2])<<40 | |
| 602 | uint(t[3])<<32 | |
| 603 | uint(t[4])<<24 | |
| 604 | uint(t[5])<<16 | |
| 605 | uint(t.HookID()) |
| 606 | return id |
| 607 | } |
| 608 | |
| 609 | // Source designates the provenance of this event type. |
| 610 | func (t Type) Source() Source { |