Common Lisp Package: BERT

BERT (Binary ERlang Term).

README:

FUNCTION

Public

BINARY (&REST BYTES)

Creates an Erlang binary from BYTES.

BINARY-TO-STRING (BINARY)

Translates the bytes in BINARY to an ASCII string.

BYTES-TO-BINARY (BYTES)

Creates an Erlang binary from BYTES.

STRING-TO-BINARY (STRING)

Creates an Erlang binary from the characters in STRING.

TUPLE (&REST ERLANG-TRANSLATABLE-OBJECTS)

Create an Erlang tuple

Undocumented

BOOL (VALUE)

DECODE (BYTES)

Private

BERT-TRANSLATABLE-P (OBJECT)

Returns true if OBJECT is translatable to an Erlang object.

Undocumented

COMPLEX-BERT-TERM-P (BERT-TERM)

COMPOUND-BERT-TERM-P (BERT-TERM)

SIMPLE-BERT-TERM-P (BERT-TERM)

TRANSLATE-COMPLEX-TERM (TERM)

TRANSLATE-COMPLEX-TERMS (TERM)

TRANSLATE-DICT-TERM (DICT)

TRANSLATE-REGEX-TERM (SOURCE OPTIONS)

TRANSLATE-TIME-TERM (MEGASECONDS SECONDS MICROSECONDS)

GENERIC-FUNCTION

Public

ENCODE (OBJECT &KEY BERP-HEADER)

Encodes the BERT-translatable object to a vector of bytes.

SIZE (TUPLE-OR-BINARY)

Returns the size of an Erlang tuple or binary.

Private

TRANSLATE-COMPLEX-TYPE (OBJECT)

Translates tuples with the 'bert' tag to corresponding Lisp objects.

SLOT-ACCESSOR

Public

ARITY (TUPLE-OR-FUN)

The Returns the arity of an Erlang tuple or fun.

BYTES (CONDITION)

Returns a vector of bytes from an Erlang binary.

Undocumented

ELEMENTS (OBJECT)

Private

Undocumented

MEGASECONDS (OBJECT)

MICROSECONDS (OBJECT)

REGEX-OPTIONS (OBJECT)

REGEX-SOURCE (OBJECT)

SECONDS (OBJECT)

VARIABLE

Public

*ATOM-SYMBOL-PACKAGE*

The package in which atom symbols are interned. Symbols are uninterned if NIL.

*LISP-STRING-IS-ERLANG-BINARY*

Send a Lisp string to Erlang as a binary instead of a list.

CLASS

Public

BERT-REGEX

BERT regex data type

BERT-TIME

BERT time data type

ERLANG-BINARY

Erlang binary.

ERLANG-TUPLE

Erlang tuple.

CONDITION

Public

UNEXPECTED-MESSAGE-TAG-ERROR

This error is signaled when an unexpected message tag is read.

UNTRANSLATABLE-LISP-OBJECT-ERROR

This error is signaled when trying to encode an unencodable object.

CONSTANT

Public

FALSE

BERT boolean false term.

TRUE

BERT boolean true term.

Private

Undocumented

+PROTOCOL-VERSION+