Function: dbus-byte-array-to-string

dbus-byte-array-to-string is a byte-compiled function defined in dbus.el.gz.

Signature

(dbus-byte-array-to-string BYTE-ARRAY &optional MULTIBYTE)

Documentation

Transform BYTE-ARRAY into UTF-8 coded string.

BYTE-ARRAY must be a list of structure (c1 c2 ...), or a byte array as produced by dbus-string-to-byte-array. The resulting string is unibyte encoded, unless MULTIBYTE is non-nil.

Source Code

;; Defined in /usr/src/emacs/lisp/net/dbus.el.gz
(defun dbus-byte-array-to-string (byte-array &optional multibyte)
  "Transform BYTE-ARRAY into UTF-8 coded string.
BYTE-ARRAY must be a list of structure (c1 c2 ...), or a byte
array as produced by `dbus-string-to-byte-array'.  The resulting
string is unibyte encoded, unless MULTIBYTE is non-nil."
  (apply
   (if multibyte #'string #'unibyte-string)
   (unless (equal byte-array '(:array :signature "y"))
     (seq-filter #'characterp byte-array))))