package tar-format

  1. Overview
  2. Docs
include module type of Tar.Header
type compatibility =
  1. | OldGNU
  2. | GNU
  3. | V7
  4. | Ustar
  5. | Posix
val compatibility_level : compatibility Pervasives.ref
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;
  7. uname : string;
  8. gname : string;
  9. devmajor : int;
  10. devminor : int;
}
val make : ?file_mode:int -> ?user_id:int -> ?group_id:int -> ?mod_time:int64 -> ?link_indicator:Link.t -> ?link_name:string -> ?uname:string -> ?gname:string -> ?devmajor:int -> ?devminor:int -> 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 : ?level:compatibility -> Cstruct.t -> t option
val marshal : ?level:compatibility -> Cstruct.t -> t -> unit
val compute_zero_padding_length : t -> int
val zero_padding : t -> Cstruct.t
val to_sectors : t -> int64
val get_next_header : ?level:compatibility -> Unix.file_descr -> t
val of_file : ?level:compatibility -> string -> t