package accessor_core

  1. Overview
  2. Docs

All of these accessors will raise if a bounds check fails. The expected bounds are documented next to the corresponding conversion functions in Core_kernel.Byte_units.

val bytes : (_, int, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val kilobytes : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val megabytes : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val gigabytes : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val terabytes : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val petabytes : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val exabytes : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
val words : (_, float, Core_kernel.Byte_units.t, [< Accessor_core__.Import.isomorphism ]) Accessor_base.Simple.t
OCaml

Innovation. Community. Security.