object
protobuf
Google Protocol Buffers binary format parser and generator.
logtalk_load(protobuf(loader))static, context_switching_callsPublic predicates
parse/2
Parses Protocol Buffers binary data from the given source (bytes(List), stream(Stream), or file(Path)) returning a Schema-Data pair. When the schema is not present in the file, Schema is unified with false.
staticparse(Source,Schema-Data)parse(++compound,--pair) - one_or_errorSource is a variable:instantiation_errorSource is neither a variable nor a valid Protocol Buffers source term:domain_error(protobuf_source,Source)Schema is not a valid Protocol Buffers schema for the encoded message:domain_error(protobuf_schema,Schema)parse/3
Parses Protocol Buffers binary data from the given source using the provided schema, returning the decoded data.
staticparse(Source,Schema,Data)parse(++compound,++term,--term) - one_or_errorSource is a variable:instantiation_errorSource is neither a variable nor a valid Protocol Buffers source term:domain_error(protobuf_source,Source)Schema is not a valid Protocol Buffers schema for the encoded message:domain_error(protobuf_schema,Schema)generate/3
Generates Protocol Buffers binary data to the given sink (bytes(List), stream(Stream), or file(Path)) from the given schema and data. The schema is not included in the output.
staticgenerate(Sink,Schema,Data)generate(++compound,++term,++term) - one_or_errorSink is a variable:instantiation_errorSink is neither a variable nor a valid Protocol Buffers sink term:domain_error(protobuf_sink,Sink)Schema is not a valid Protocol Buffers schema for Data:domain_error(protobuf_schema,Schema)generate/4
Generates Protocol Buffers binary data to the given sink from the given schema and data. When IncludeSchema is true, the schema is embedded in a wrapper message.
staticgenerate(Sink,IncludeSchema,Schema,Data)generate(++compound,++boolean,++term,++term) - one_or_errorSink is a variable:instantiation_errorSink is neither a variable nor a valid Protocol Buffers sink term:domain_error(protobuf_sink,Sink)Schema is not a valid Protocol Buffers schema for Data:domain_error(protobuf_schema,Schema)Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)