Module Type
: sigendtype'at
The type for a user event content type.
valunit : unitt
An event that has no data associated with it.
typespan =
| Begin
| End
valspan : spant
An event that has a beginning and an end.
valint : intt
An event containing an integer value.
valregister : encode:(bytes->'a->int)->decode:(bytes->int->'a)->'at
Registers a custom type by providing an encoder and a decoder. The encoder writes the value in the
provided buffer and returns the number of bytes written. The decoder gets a slice of the buffer of
specified length, and returns the decoded value.
The maximum value length is 1024 bytes.
OCamldoc 2025-06-12 Runtime_events.Type(3o)