ST 0601 C ABI
Use include/misb0601.h for the signatures, enum values and structure layouts shipped with your binary. Call Misb0601LicenseInitialize and inspect the three capability flags.
| Task | Entrypoints | Release |
|---|---|---|
| Convert between JSON and complete wire packets | Misb0601EncodeJSON, Misb0601DecodeJSON | Misb0601BufferFree |
| Encode a local-set value | Misb0601EncodeLocalSetJSON | Misb0601BufferFree |
| Select JSON, raw packet, local-set or item outputs | Misb0601DecodePacket, Misb0601DecodeLocalSet with decode options | Misb0601DecodeResultFree |
| Find a packet inside a larger buffer | Misb0601FindPacket | Misb0601FindResultFree |
| Read tag values or nested items | Misb0601DecodeTagValues, Misb0601DecodeNestedItems | Misb0601TagValueResultFree |
| Get rule descriptions or validate | Misb0601ValidationRules, Misb0601ValidatePacket, Misb0601ValidateLocalSet | Misb0601BufferFree for the JSON output |
| Count nested series entries | Misb0601CountSeriesItems | Caller-owned count |
For complete packets include the universal key, BER length and value. A local-set value starts at the first tag. Use the matching local-set call when you already have the value.
Use Misb0601DecodePacket with output_flags to request JSON, packet bytes, a local-set value, or a tag-value table in a single result. Combine the MISB0601_OUTPUT_* flags with bitwise OR. A find result also carries the start offset and the number of input bytes consumed. The demo filter applies to the returned data in each shape.
For streams, create a handle with Misb0601StreamDecoderCreate. Choose output flags in its configuration. Push chunks with Misb0601StreamDecoderPush or demuxed payloads with Misb0601StreamDecoderPushPES. Poll Misb0601StreamDecoderNext until NO_DATA, releasing each event with Misb0601StreamEventFree. Flush, drain again, free the handle, and then shut down licensing. See the stream example.