bbolt-rs 1.3.10

A Rust port of the Bolt database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(target_pointer_width = "32")]
pub mod size {
  use size::consts::{GIBIBYTE, MEBIBYTE};
  use size::Size;

  pub const MAX_MAP_SIZE: Size = Size::from_const(2 * GIBIBYTE);
  pub const MAX_ALLOC_SIZE: Size = Size::from_const(256 * MEBIBYTE);
}

#[cfg(target_pointer_width = "64")]
pub mod size {
  use size::consts::{GIBIBYTE, TEBIBYTE};
  use size::Size;

  pub const MAX_MAP_SIZE: Size = Size::from_const(256 * TEBIBYTE);
  pub const MAX_ALLOC_SIZE: Size = Size::from_const(2 * GIBIBYTE);
}