Add BMessenger::HashValue()
This commit is contained in:
@@ -57,6 +57,8 @@ public:
|
|||||||
bool IsValid() const;
|
bool IsValid() const;
|
||||||
team_id Team() const;
|
team_id Team() const;
|
||||||
|
|
||||||
|
uint32 HashValue() const;
|
||||||
|
|
||||||
//----- Private or reserved -----------------------------------------
|
//----- Private or reserved -----------------------------------------
|
||||||
|
|
||||||
class Private;
|
class Private;
|
||||||
|
|||||||
@@ -504,6 +504,13 @@ BMessenger::Team() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uint32
|
||||||
|
BMessenger::HashValue() const
|
||||||
|
{
|
||||||
|
return fPort * 19 + fHandlerToken;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark - Private or reserved
|
// #pragma mark - Private or reserved
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user