object
message_pack(StringRepresentation)
StringRepresentation- Text representation to be used when decoding MessagePack strings. Possible values areatom(default),chars, andcodes.
MessagePack format exporter and importer.
Availability:
logtalk_load(message_pack(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-05-09
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
(none)
Public predicates
parse/2
Parses a list of bytes in the MessagePack format returning the corresponding term representation. Throws an error when parsing is not possible (usually due to an invalid byte sequence).
Compilation flags:
staticTemplate:
parse(Bytes,Term)Mode and number of proofs:
parse(@list(byte),-ground) - one_or_errorgenerate/2
Generates a list of bytes in the MessagePack format representing the given term. Throws an error when generating is not possible (usually due to a term with no corresponding MessagePack representation).
Compilation flags:
staticTemplate:
generate(Term,Bytes)Mode and number of proofs:
generate(@ground,-list(byte)) - one_or_errorProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)