Function: tramp-gvfs-dbus-string-to-byte-array

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

Signature

(tramp-gvfs-dbus-string-to-byte-array STRING)

Documentation

Like dbus-string-to-byte-array but add trailing \0 if needed.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-gvfs.el.gz
;; D-Bus helper function.

(defun tramp-gvfs-dbus-string-to-byte-array (string)
  "Like `dbus-string-to-byte-array' but add trailing \\0 if needed."
  (dbus-string-to-byte-array
   (if (string-match-p "^(aya{sv})" tramp-gvfs-mountlocation-signature)
       (concat string (string 0)) string)))