package carton

  1. Overview
  2. Docs

Module Carton.SizeSource

The size is a non-negative number which corresponds to the size of a Blob in memory in bytes.

Note: We're not talking about the size of an object in the PACK file, but the size of the buffers needed to extract an object. Indeed, depending on the object and the way it is serialized in the PACK file, it may be necessary for the size to be larger than the object itself, particularly to store the source needed to build a patched object.

Sourcetype t = private int
Sourceval of_int_exn : int -> t
Sourceval to_int : t -> int
Sourceval zero : t
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval max : t -> t -> t