package gptar

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val marshal_header : sector_size:int -> Cstruct.t -> Gpt.t -> unit

marshal_header ~sector_size buf gpt marshals into buf a hybrid protective MBR + tar header followed by the GPT header in the next sector according to sector_size. The partition table and the backup GPT header are not serialized, and the caller must call the respective functions in Gpt.

  • raises Invalid_argument

    when buf or sector_size is too small.

OCaml

Innovation. Community. Security.