package chamelon

  1. Overview
  2. Docs
val magic : Cstruct.t
val version : int * int
val name_length_max : int32
val file_size_max : int32
val file_attribute_size_max : int32
type superblock = {
  1. version_minor : Cstruct.uint16;
  2. version_major : Cstruct.uint16;
  3. block_size : Cstruct.uint32;
  4. block_count : Cstruct.uint32;
  5. name_length_max : Cstruct.uint32;
  6. file_size_max : Cstruct.uint32;
  7. file_attribute_size_max : Cstruct.uint32;
}
val sizeof_superblock : int
val get_superblock_version_minor : Cstruct.t -> Cstruct.uint16
val set_superblock_version_minor : Cstruct.t -> Cstruct.uint16 -> unit
val get_superblock_version_major : Cstruct.t -> Cstruct.uint16
val set_superblock_version_major : Cstruct.t -> Cstruct.uint16 -> unit
val get_superblock_block_size : Cstruct.t -> Cstruct.uint32
val set_superblock_block_size : Cstruct.t -> Cstruct.uint32 -> unit
val get_superblock_block_count : Cstruct.t -> Cstruct.uint32
val set_superblock_block_count : Cstruct.t -> Cstruct.uint32 -> unit
val get_superblock_name_length_max : Cstruct.t -> Cstruct.uint32
val set_superblock_name_length_max : Cstruct.t -> Cstruct.uint32 -> unit
val get_superblock_file_size_max : Cstruct.t -> Cstruct.uint32
val set_superblock_file_size_max : Cstruct.t -> Cstruct.uint32 -> unit
val get_superblock_file_attribute_size_max : Cstruct.t -> Cstruct.uint32
val set_superblock_file_attribute_size_max : Cstruct.t -> Cstruct.uint32 -> unit
val hexdump_superblock_to_buffer : Buffer.t -> Cstruct.t -> unit
val hexdump_superblock : Cstruct.t -> unit
val parse : Cstruct.t -> (superblock, [> `Msg of string ]) result
val into_cstruct : Cstruct.t -> superblock -> unit
val to_cstruct : superblock -> Cstruct.t
val name : Tag.t * Cstruct.t
val is_valid_name : (Tag.t * Cstruct.t) -> bool
val is_valid_superblock : (Tag.t * Cstruct.t) -> bool
val inline_struct : Cstruct.uint32 -> Cstruct.uint32 -> Tag.t * Cstruct.t
OCaml

Innovation. Community. Security.