Module Ppx_cstruct

module Loc = Migrate_parsetree.Ast_404.Location
module Ast = Ast_convenience_404
type mode =
| Big_endian
| Little_endian
| Host_endian
type prim =
| Char
| UInt8
| UInt16
| UInt32
| UInt64
type ty =
| Prim of prim
| Buffer of prim * int
type field = {
field : string;
ty : ty;
off : int;
}
type t = {
name : string;
fields : field list;
len : int;
endian : mode;
}
val ty_of_string : string ‑> prim option
val width_of_field : field ‑> int
val field_to_string : field ‑> string
val to_string : t ‑> string
val loc_err : Migrate_parsetree.Ast_404.Location.t ‑> ('aFormat.formatter, unit, unit, unit, 'bPervasives.format6 ‑> 'a
val parse_field : Migrate_parsetree.Ast_404.Location.t ‑> string ‑> string ‑> int option ‑> field
val create_struct : Migrate_parsetree.Ast_404.Location.t ‑> string ‑> string Migrate_parsetree.Ast_404.Asttypes.loc ‑> field list ‑> t
val ($.) : Migrate_parsetree.Ast_404.Longident.t ‑> string ‑> Migrate_parsetree.Ast_404.Longident.t
val cstruct_id : Migrate_parsetree.Ast_404.Longident.t
val mode_mod : string ‑> mode ‑> Migrate_parsetree.Ast_404.Longident.t
val mode_mod : Ast_404.Ast_helper.loc ‑> mode ‑> string ‑> Ast_404.Parsetree.expression
val getter_name : t ‑> field ‑> string
val setter_name : t ‑> field ‑> string
val op_name : string ‑> t ‑> field ‑> string
val output_get : Ast_404.Ast_helper.loc ‑> t ‑> field ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val output_get : Ast_404.Ast_helper.loc ‑> t ‑> field ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val type_of_int_field : prim ‑> Migrate_parsetree.Ast_404.Parsetree.core_type
val type_of_int_field : 'a ‑> prim ‑> Migrate_parsetree.Ast_404.Parsetree.core_type
val output_get_sig : 'a ‑> t ‑> field ‑> Ast_404.Parsetree.signature_item list
val output_get_sig : 'a ‑> t ‑> field ‑> Ast_404.Parsetree.signature_item list
val output_set : Ast_404.Ast_helper.loc ‑> t ‑> field ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val output_set : Ast_404.Ast_helper.loc ‑> t ‑> field ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val output_set_sig : Loc.t ‑> t ‑> field ‑> Ast_404.Parsetree.signature_item list
val output_sizeof : Ast_404.Location.t ‑> t ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item
val output_sizeof_sig : Ast_404.Location.t ‑> t ‑> Ast_404.Parsetree.signature_item
val output_hexdump : Ast_404.Location.t ‑> t ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val output_hexdump_sig : Loc.t ‑> t ‑> Ast_404.Parsetree.signature_item list
val output_struct : Ast_404.Ast_helper.loc ‑> t ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val output_struct_sig : Loc.t ‑> t ‑> Ast_404.Parsetree.signature_item list
val output_enum : Migrate_parsetree.Ast_404.Location.t ‑> string Migrate_parsetree.Ast_404.Asttypes.loc ‑> (string Migrate_parsetree.Ast_404.Asttypes.loc * int64) list ‑> string ‑> sexp:bool ‑> Ast_404.Parsetree.structure_item list
val output_enum_sig : Migrate_parsetree.Ast_404.Location.t ‑> string Migrate_parsetree.Ast_404.Asttypes.loc ‑> (Ast_404.Ast_helper.str * 'a) list ‑> string ‑> sexp:bool ‑> Ast_404.Parsetree.signature_item list
val constr_enum : Migrate_parsetree.Ast_404.Parsetree.constructor_declaration ‑> string Ast_404.Asttypes.loc * int64 option
val constr_field : Migrate_parsetree.Ast_404.Parsetree.label_declaration ‑> field
val cstruct : Migrate_parsetree.Ast_404.Parsetree.type_declaration ‑> t
val cenum : Migrate_parsetree.Ast_404.Parsetree.type_declaration ‑> string Ast_404.Asttypes.loc * (string Ast_404.Asttypes.loc * int64) list * string * bool
val signature_item' : Migrate_parsetree.Ast_404.Ast_mapper.mapper ‑> Migrate_parsetree.Ast_404.Parsetree.signature_item ‑> Ast_404.Parsetree.signature_item list
val signature : Migrate_parsetree.Ast_404.Ast_mapper.mapper ‑> Migrate_parsetree.Ast_404.Parsetree.signature_item list ‑> Ast_404.Parsetree.signature_item list
val structure_item' : Migrate_parsetree.Ast_404.Ast_mapper.mapper ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list
val structure : Migrate_parsetree.Ast_404.Ast_mapper.mapper ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list ‑> Migrate_parsetree.Ast_404.Parsetree.structure_item list