Module inspect_format::utils

source ·

Functions§

  • Get the array capacity size for the given |order|.
  • Get the necessary |block size| to fit the given |payload_size| in range MIN_ORDER_SIZE <= block size <= MAX_ORDER_SIZE
  • Returns the smallest order such that (MIN_ORDER_SHIFT << order) >= size. Size must be non zero.
  • Get size in bytes of a given |order|.
  • Get the size in bytes for the payload section of a block of the given |order|.