package sonet

  1. Overview
  2. Docs
type base =
  1. | B_byte
  2. | B_boolean
  3. | B_int16
  4. | B_uint16
  5. | B_int32
  6. | B_uint32
  7. | B_int64
  8. | B_uint64
  9. | B_double
  10. | B_string
  11. | B_object_path
  12. | B_signature
type t =
  1. | T_base of base
  2. | T_variant
  3. | T_array of t
  4. | T_struct of t list
type endian =
  1. | Little_endian
  2. | Big_endian
val to_string : t -> string
val to_code : t -> string
val is_basic_type : t -> bool
val is_container_type : t -> bool
val alignment_of : t -> int
val get_padding : offset:int -> align:int -> int
type sig_error =
  1. | Sig_incomplete
  2. | Sig_invalid of string
  3. | Sig_invalid_char of char
  4. | Sig_not_nul_terminated
val sig_error_message : sig_error -> string
exception Invalid_signature of sig_error
val signature_of_string : string -> t list
val signature_of_types : t list -> string