| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.101.0/docs/apis/_sources/base64_0.rst.txt |
.. index:: single: base64 .. _base64/0:
.. rst-class:: right
object
base64Base64 parser and generator.
| Availability:
| logtalk_load(base64(loader))
| Author: Paulo Moura | Version: 1:0:1 | Date: 2026-06-14
| Compilation flags:
| static, context_switching_calls
| Uses: | :ref:`reader <reader/0>`
| Remarks: | (none)
| Inherited public predicates: | (none)
.. contents:: :local: :backlinks: top
.. index:: parse/2 .. _base64/0::parse/2:
parse/2 ^^^^^^^^^^^
Parses the Base64 data from the given source (atom(Atom), chars(List), codes(List), stream(Stream), or file(Path) into a list of bytes.
| Compilation flags:
| static
| Template:
| parse(Source,Bytes)
| Mode and number of proofs:
| parse(++compound,--list(byte)) - one_or_error
| Exceptions:
| Source is a variable:
| instantiation_error
| Source is neither a variable nor a valid Base64 source term:
| domain_error(base64_source,Source)
| Source contains Base64 data with characters outside the Base64 alphabet:
| representation_error(base64)
.. index:: generate/2 .. _base64/0::generate/2:
generate/2 ^^^^^^^^^^^^^^
Generates Base64 in the representation specified in the first argument (atom(Atom), chars(List), codes(List), stream(Stream), or file(Path) for the list of bytes in the second argument.
| Compilation flags:
| static
| Template:
| generate(Sink,Bytes)
| Mode and number of proofs:
| generate(+compound,+list(byte)) - one_or_error
| Exceptions:
| Sink is a variable:
| instantiation_error
| Sink is neither a variable nor a valid Base64 sink term:
| domain_error(base64_sink,Sink)
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(none)