Allow getting the address of more than just memory segments
This commit is contained in:
parent
75910f0ab3
commit
ba8c67e8d4
1 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
MethodHandle
|
||||
MethodType)
|
||||
(jdk.incubator.foreign
|
||||
Addressable
|
||||
CLinker
|
||||
FunctionDescriptor
|
||||
GroupLayout
|
||||
|
|
@ -83,8 +84,8 @@
|
|||
"Gets the address of a given segment.
|
||||
|
||||
This value can be used as an argument to functions which take a pointer."
|
||||
[segment]
|
||||
(.address ^MemorySegment segment))
|
||||
[addressable]
|
||||
(.address ^Addressable addressable))
|
||||
|
||||
(defn slice-global
|
||||
"Gets a slice of the global address space.
|
||||
|
|
|
|||
Loading…
Reference in a new issue