MedEx.Serialization (med_ex v0.2.0)

Copy Markdown View Source

MEJ1 representation of stream descriptors, indexes and receipts. Counter fields are decimal strings, rational rates are ordered pairs and enums are strings. Decode using the field's declared type. Arbitrary protocol payloads use Base64.

Summary

Functions

bytes(value)

descriptor_ref(s)

digest(value)

enum!(s, values)

integer!(n)

measurement(map)

Restore a validated sparse event, preserving exact decimal and raw payload identity.

receipt(map)

sha256(bytes)

stream_spec(map)

to_map(e)

unscalar!(v)