MCPcopy Create free account
hub / github.com/cosdata/cosdata / pseudo_root_id

Function pseudo_root_id

src/metadata/mod.rs:219–225  ·  view source on GitHub ↗

Returns the internal id for pseudo root node

()

Source from the content-addressed store, hash-verified

217
218/// Returns the internal id for pseudo root node
219pub fn pseudo_root_id() -> InternalId {
220 // The last 258 IDs in the generate u32 internal IDs range are
221 // reserved for special cases, `u32::MAX` is for root node,
222 // `u32::MAX - 1` is for queries, and the range `[u32::MAX -
223 // 257, u32::MAX - 2]`
224 InternalId::from(u32::MAX - 257)
225}
226
227#[cfg(test)]
228mod tests {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected