PartialOid
PartialOid
is the unique identifier of an object within the context of a universe. The term "partial" indicates that the universe ID is not included.
Representation
A PartialOid
can be represented using the following structure:
#![allow(unused)] fn main() { pub struct PartialOid { set: u64, id: u64, } }
The table below outlines the fields of the PartialOid
structure:
Size (bytes) | Field | Type | Description |
---|---|---|---|
8 | set | u64 | The set ID |
8 | id | u64 | The object ID |
Encoding
The PartialOid
structure is often encoded as a u128
:
#![allow(unused)] fn main() { (u128(oid.set) << 64) | u128(oid.id) }