Add padding serdes to support struct layouts
This commit is contained in:
parent
b2918936e7
commit
b9afb254fb
1 changed files with 14 additions and 0 deletions
|
|
@ -537,6 +537,20 @@
|
||||||
type))))
|
type))))
|
||||||
obj)))
|
obj)))
|
||||||
|
|
||||||
|
;;; Padding type
|
||||||
|
|
||||||
|
(defmethod c-layout ::padding
|
||||||
|
[[_padding size]]
|
||||||
|
(MemoryLayout/paddingLayout (* 8 size)))
|
||||||
|
|
||||||
|
(defmethod serialize-into ::padding
|
||||||
|
[_obj [_padding _size] _segment _scope]
|
||||||
|
nil)
|
||||||
|
|
||||||
|
(defmethod deserialize-from ::padding
|
||||||
|
[_segment [_padding _size]]
|
||||||
|
nil)
|
||||||
|
|
||||||
;;; FFI Code loading and function access
|
;;; FFI Code loading and function access
|
||||||
|
|
||||||
(defn load-system-library
|
(defn load-system-library
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue