Basic constructor macro for hex-string-content structures.
(make-hex-string-content [:first <first>] [:rest <rest>])
This is the usual way to construct hex-string-content structures. It simply conses together a structure with the specified fields.
This macro generates a new hex-string-content structure from scratch. See also change-hex-string-content, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-hex-string-content (&rest args) (std::make-aggregate 'hex-string-content args '((:first) (:rest)) 'make-hex-string-content nil))
Function:
(defun hex-string-content (first rest) (declare (xargs :guard (and (hex-pairp first) (hex-string-rest-element-listp rest)))) (declare (xargs :guard t)) (let ((__function__ 'hex-string-content)) (declare (ignorable __function__)) (b* ((first (mbe :logic (hex-pair-fix first) :exec first)) (rest (mbe :logic (hex-string-rest-element-list-fix rest) :exec rest))) (cons :hex-string-content (list (cons 'first first) (cons 'rest rest))))))