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)FieldTypeDescription
8setu64The set ID
8idu64The object ID

Encoding

The PartialOid structure is often encoded as a u128:

#![allow(unused)]
fn main() {
(u128(oid.set) << 64) | u128(oid.id)
}