Allow getting the address of more than just memory segments

This commit is contained in:
Joshua Suskalo 2021-09-17 10:48:24 -05:00
parent 75910f0ab3
commit ba8c67e8d4

View file

@ -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.