Contact ids to facilitate warm starting. < Used to quickly compare contact ids.
()
| 41 | /// Contact ids to facilitate warm starting. |
| 42 | ///< Used to quickly compare contact ids. |
| 43 | func (v B2ContactID) Key() uint32 { |
| 44 | return *(*uint32)(unsafe.Pointer(&v.IndexA)) // here we do not care about Endianness; see https://stackoverflow.com/a/7380354 |
| 45 | } |
| 46 | |
| 47 | func (v B2ContactID) SetKey(key uint32) { |
| 48 | *(*uint32)(unsafe.Pointer(&v.IndexA)) = key |
no outgoing calls
no test coverage detected