protocol
term_io_protocol¶
Predicates for term input/output from/to atom, chars, and codes. The predicates are declared as synchronized when the library is compiled using a backend supporting threads.
staticPublic predicates¶
read_term_from_atom/3¶
Reads a term from an atom using the given read options. A period at the end of the atom is optional.
static, synchronizedread_term_from_atom(Atom,Term,Options)read_term_from_atom(@term,-atom,+list(read_option)) - one_or_errorread_from_atom/2¶
Reads a term from an atom using default read options. Shorthand for read_term_from_atom(Atom,Term,[]). A period at the end of the atom is optional.
staticread_from_atom(Atom,Term)read_from_atom(@term,-atom) - one_or_errorread_term_from_chars/3¶
Reads a term from a list of characters using the given read options. A period at the end of the list is optional.
static, synchronizedread_term_from_chars(Chars,Term,Options)read_term_from_chars(@term,-list(character),+list(read_option)) - one_or_errorread_from_chars/2¶
Reads a term from a list of characters using default read options. Shorthand for read_term_from_chars(Chars,Term,[]). A period at the end of the list is optional.
staticread_from_chars(Chars,Term)read_from_chars(@term,-list(character)) - one_or_errorread_term_from_codes/3¶
Reads a term from a list of character codes using the given read options. A period at the end of the list is optional.
static, synchronizedread_term_from_codes(Codes,Term,Options)read_term_from_codes(@term,-list(character_code),+list(read_option)) - one_or_errorread_from_codes/2¶
Reads a term from a list of character codes using default read options. Shorthand for read_term_from_codes(Codes,Term,[]). A period at the end of the list is optional.
staticread_from_codes(Codes,Term)read_from_codes(@term,-list(character_code)) - one_or_errorwrite_term_to_atom/3¶
Writes a term to an atom using the given write options.
static, synchronizedwrite_term_to_atom(Term,Atom,Options)write_term_to_atom(@term,-atom,+list(write_option)) - onewrite_to_atom/2¶
Writes a term to an atom using default write options. Shorthand for write_term_to_atom(Term,Atom,[]).
staticwrite_to_atom(Term,Atom)write_to_atom(@term,-atom) - onewrite_term_to_chars/3¶
Writes a term to a list of characters using the given write options. Shorthand for write_term_to_chars(Term,Chars,[],Options).
staticwrite_term_to_chars(Term,Chars,Options)write_term_to_chars(@term,-list(character),+list(write_option)) - onewrite_term_to_chars/4¶
Writes a term to a list of characters with the given tail using the given write options.
static, synchronizedwrite_term_to_chars(Term,Chars,Tail,Options)write_term_to_chars(@term,-list(character),@term,+list(write_option)) - onewrite_to_chars/2¶
Writes a term to a list of characters using default write options. Shorthand for write_term_to_chars(Term,Chars,[],[]).
staticwrite_to_chars(Term,Chars)write_to_chars(@term,-list(character)) - onewrite_term_to_codes/3¶
Writes a term to a list of character codes using the given write options. Shorthand for write_term_to_codes(Term,Codes,[],Options).
staticwrite_term_to_codes(Term,Codes,Options)write_term_to_codes(@term,-list(character_code),+list(write_option)) - onewrite_term_to_codes/4¶
Writes a term to a list of character codes with the given tail using the given write options.
static, synchronizedwrite_term_to_codes(Term,Codes,Tail,Options)write_term_to_codes(@term,-list(character_code),@term,+list(write_option)) - onewrite_to_codes/2¶
Writes a term to a list of character codes using default write options. Shorthand for write_term_to_chars(Term,Codes,[],[]).
staticwrite_to_codes(Term,Codes)write_to_codes(@term,-list(character_code)) - oneformat_to_atom/3¶
Writes a list of arguments to an atom using the given format.
static, synchronizedformat_to_atom(Format,Arguments,Atom)format_to_atom(@atom,+list(term),-atom) - oneformat_to_chars/3¶
Writes a list of arguments to a list of characters using the given format. Shorthand for format_to_chars(Format,Arguments,Chars,[]).
staticformat_to_chars(Format,Arguments,Chars)format_to_chars(@term,+list(term),-list(character)) - oneformat_to_chars/4¶
Writes a term to a list of characters with the given tail using the given format.
static, synchronizedformat_to_chars(Format,Arguments,Chars,Tail)format_to_chars(@term,+list(term),-list(character),@term) - oneformat_to_codes/3¶
Writes a list of arguments to a list of character codes using the given format. Shorthand for format_to_codes(Format,Arguments,Codes,[]).
staticformat_to_codes(Format,Arguments,Codes)format_to_codes(@term,+list(term),-list(character_code)) - oneformat_to_codes/4¶
Writes a list of arguments to a list of character codes with the given tail using the given format.
static, synchronizedformat_to_codes(Format,Arguments,Codes,Tail)format_to_codes(@term,+list(term),-list(character_code),@term) - oneProtected predicates¶
(none)
Private predicates¶
(none)