rust/hg-core/src/revlog/node.rs
changeset 51189 b4d152a28742
parent 51120 532e74ad3ff6
equal deleted inserted replaced
51188:1ef4a36a934d 51189:b4d152a28742
    17 /// This constant is meant to ease refactors of this module, and
    17 /// This constant is meant to ease refactors of this module, and
    18 /// are private so that calling code does not expect all nodes have
    18 /// are private so that calling code does not expect all nodes have
    19 /// the same size, should we support several formats concurrently in
    19 /// the same size, should we support several formats concurrently in
    20 /// the future.
    20 /// the future.
    21 pub const NODE_BYTES_LENGTH: usize = 20;
    21 pub const NODE_BYTES_LENGTH: usize = 20;
       
    22 
       
    23 /// The length in bytes set aside on disk for a `Node`. Revlog up to v1 only
       
    24 /// use 20 out of those 32.
       
    25 pub const STORED_NODE_ID_BYTES: usize = 32;
    22 
    26 
    23 /// Id of the null node.
    27 /// Id of the null node.
    24 ///
    28 ///
    25 /// Used to indicate the absence of node.
    29 /// Used to indicate the absence of node.
    26 pub const NULL_NODE_ID: [u8; NODE_BYTES_LENGTH] = [0u8; NODE_BYTES_LENGTH];
    30 pub const NULL_NODE_ID: [u8; NODE_BYTES_LENGTH] = [0u8; NODE_BYTES_LENGTH];