Ensure that there's no reflection on deserializing a string
This commit is contained in:
parent
bf611f3106
commit
4a6cf4075e
1 changed files with 4 additions and 7 deletions
|
|
@ -380,18 +380,15 @@
|
||||||
(deserialize* type)))
|
(deserialize* type)))
|
||||||
|
|
||||||
(defmethod deserialize* ::c-string
|
(defmethod deserialize* ::c-string
|
||||||
[obj _type]
|
[addr _type]
|
||||||
(CLinker/toJavaString obj))
|
(CLinker/toJavaString ^MemoryAddress addr))
|
||||||
|
|
||||||
(defn serialize
|
|
||||||
[])
|
|
||||||
|
|
||||||
(defn deserialize
|
(defn deserialize
|
||||||
"Deserializes an arbitrary type regardless of if it is primitive.
|
"Deserializes an arbitrary type.
|
||||||
|
|
||||||
For types which have a primitive representation, this deserializes the
|
For types which have a primitive representation, this deserializes the
|
||||||
primitive representation. For types which do not, this deserializes out of
|
primitive representation. For types which do not, this deserializes out of
|
||||||
a [[MemorySegment]]."
|
a segment."
|
||||||
[obj type]
|
[obj type]
|
||||||
((if (primitive-type type)
|
((if (primitive-type type)
|
||||||
deserialize*
|
deserialize*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue