package wire
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=323f48e6cb897fe48aac558b09bb25134d3b19fec37b20d7930eec15f387c238
sha512=00c77f8672396ab15d993602db9bab95d2478ace1f569606f0140ed25d7ff852525e53436d95e5061442a6ea8b5650549239c68ef861b4b921b4a53faac97eb7
doc/wire/Wire/Everparse/Raw/index.html
Module Everparse.RawSource
Escape hatch for manual 3D authoring.
These constructors exist for EverParse features that currently have no codec-level equivalent, plus the struct-level projection knobs. Most users should stay on the Field/Codec path and use project.
val typedef :
?entrypoint:bool ->
?export:bool ->
?output:bool ->
?extern_:bool ->
?doc:string ->
struct_ ->
declTop-level typedef declaration.
External function declaration used by 3D actions.
One tagged case in a top-level casetype declaration.
Top-level casetype declaration.
Renders a 3D module to text. With ~enum_as_type:true an enum field renders as its named 3D enum type rather than the base type plus a membership refinement.
Writes a rendered 3D module to a file. See to_3d for enum_as_type.
Lower a codec to its 3D struct, the intermediate the stubs and benchmark codegen operate on.
project_struct ?mode s is project on an already-lowered struct.
Named field. Returns a packed Field.t.
field_ref f returns the expression referencing field f by name. The field must have been created with field (not anon_field).
Named field names with their OCaml type kind.
struct_project s ~name ~keep returns a copy of s renamed to name keeping only the fields in keep. All others become anonymous.
Formal parameters of a struct (empty for non-parameterised structs).
Names of the input (non-mutable) parameters, in declaration order, which is the order the generated validator and its wrapper take them.
C type of each input (non-mutable) parameter, in declaration order, e.g. ["uint8_t"; "uint16_t"]. Matches the widths the generated validator wrapper takes, so a caller can build the wrapper call without reading the generated header.
Parameterised 3D struct.
Apply a parameterised description to integer arguments.
Pretty-printer for 3D-facing type syntax.
Pretty-printer for 3D modules.