Ensure that ::c-string has layouts specified
This commit is contained in:
parent
1d09275ba4
commit
5886f3203d
1 changed files with 8 additions and 0 deletions
|
|
@ -166,6 +166,10 @@
|
|||
[type]
|
||||
(c-prim-layout type))
|
||||
|
||||
(defmethod c-layout ::c-string
|
||||
[_type]
|
||||
CLinker/C_POINTER)
|
||||
|
||||
(defmulti primitive-type
|
||||
"Gets the primitive type that is used to pass as an argument for the `type`.
|
||||
|
||||
|
|
@ -205,6 +209,10 @@
|
|||
[type]
|
||||
(java-prim-layout type MemorySegment))
|
||||
|
||||
(defmethod java-layout ::c-string
|
||||
[_type]
|
||||
MemoryAddress)
|
||||
|
||||
(defn size-of
|
||||
"The size in bytes of the given `type`."
|
||||
[type]
|
||||
|
|
|
|||
Loading…
Reference in a new issue