package tar-format

  1. Overview
  2. Docs
type t = {
  1. file_name : string;
  2. file_mode : int;
  3. user_id : int;
  4. group_id : int;
  5. file_size : int64;
  6. mod_time : int64;
}
val make : ?file_mode:int -> ?user_id:int -> ?group_id:int -> ?mod_time:int64 -> ?link_indicator:Link.t -> ?link_name:string -> string -> int64 -> t
val length : int
val zero_block : Cstruct.t
val to_detailed_string : t -> string
val to_hex : string -> string
exception Checksum_mismatch
exception End_of_stream
val unmarshal : Cstruct.t -> t option
val marshal : Cstruct.t -> t -> unit
val compute_zero_padding_length : t -> int
val zero_padding : t -> Cstruct.t
val to_sectors : t -> int64
OCaml

Innovation. Community. Security.