Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the fmarshal Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:18:53 2022 GMT+0.
Next: Systems, Previous: The fmarshal Reference Manual, Up: The fmarshal Reference Manual [Contents][Index]
* Use Cases ** DONE Marshal List #+BEGIN_SRC lisp (fmarshal:load (fmarshal:dump (list 1 (list 2 3) 4))) ;; => (1 (2 3) 4) #+END_SRC ** DONE Marshal Vector #+BEGIN_SRC lisp (fmarshal:load (fmarshal:dump #(1 #(2 3) 4))) ;; => #(1 #(2 3) 4) (fmarshal:load (fmarshal:dump (make-array (list 2 2) :initial-element 0))) ;; => # #2A((0 0) (0 0)) #+END_SRC ** DONE Marshal Hashmap #+BEGIN_SRC lisp (let ((h (make-hash-table :test 'equal))) (setf (gethash "blub" h) t) (gethash "blub" (fmarshal:load (fmarshal:dump h)))) ;; => T #+END_SRC ** DONE Marshal Object #+BEGIN_SRC lisp (defclass test-object () (test-slot)) (let ((o (make-instance 'test-object))) (setf (slot-value o 'test-slot) "blub") (slot-value (fmarshal:load (fmarshal:dump o)) 'test-slot)) ;; => "blub" #+END_SRC ** DONE Marshal References #+BEGIN_SRC lisp (defclass test-inherited (test-object) (object-slot)) (let ((o (make-instance 'test-inherited))) (setf (slot-value o 'test-slot) "blub") (setf (slot-value o 'object-slot) o) (let ((loaded-object (fmarshal:load (fmarshal:dump o)))) (values (slot-value loaded-object 'test-slot) (eq loaded-object (slot-value loaded-object 'object-slot))))) ;; => "blub", T #+END_SRC
Next: Files, Previous: Introduction, Up: The fmarshal Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
dump and load objects
Jürgen Bickert <juergenbickert@gmail.com>
Jürgen Bickert <juergenbickert@gmail.com>
LGPL
1.0.0
closer-mop (system).
Next: Packages, Previous: Systems, Up: The fmarshal Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: fmarshal/fmarshal.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
fmarshal (system).
Previous: fmarshal/fmarshal.asd, Up: Lisp [Contents][Index]
readme.org (file).
fmarshal (system).
Next: Definitions, Previous: Files, Up: The fmarshal Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The fmarshal Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Previous: Public Interface, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Special variables, Up: Internals [Contents][Index]
Next: Generic functions, Previous: Macros, Up: Internals [Contents][Index]
Previous: Ordinary functions, Up: Internals [Contents][Index]
Previous: Definitions, Up: The fmarshal Reference Manual [Contents][Index]
Jump to: | D F G L M N U |
---|
Jump to: | D F G L M N U |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | F P R S |
---|
Jump to: | F P R S |
---|