Skip to content

Commit

Permalink
document write_header
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Feb 4, 2024
1 parent 462063b commit 2b49b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions unix/tar_lwt_unix.mli
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ val append_file : ?level:Tar.Header.compatibility -> ?header:Tar.Header.t ->
string -> Lwt_unix.file_descr ->
(unit, [ `Msg of string | `Unix of (Unix.error * string * string) ]) result Lwt.t

(** [write_header ~level hdr fd] writes the header [hdr] to [fd]. *)
val write_header : ?level:Tar.Header.compatibility ->
Tar.Header.t -> Lwt_unix.file_descr ->
(unit, [ `Msg of string | `Unix of (Unix.error * string * string) ]) result Lwt.t
Expand Down
1 change: 1 addition & 0 deletions unix/tar_unix.mli
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ val append_file : ?level:Tar.Header.compatibility -> ?header:Tar.Header.t ->
string -> Unix.file_descr ->
(unit, [ `Msg of string | `Unix of (Unix.error * string * string) ]) result

(** [write_header ~level hdr fd] writes the header [hdr] to [fd]. *)
val write_header : ?level:Tar.Header.compatibility ->
Tar.Header.t -> Unix.file_descr ->
(unit, [ `Msg of string | `Unix of (Unix.error * string * string) ]) result
Expand Down

0 comments on commit 2b49b1f

Please sign in to comment.