Update docstring to reflect address-of returning a long
This commit is contained in:
parent
d183fcdf98
commit
6ff882b85d
2 changed files with 2 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. This change
|
|||
- Upcall and downcall classes have been changed to be memoized, meaning ASM is no longer invoked every time a function is serialized, which should drastically improve performance where functions are serialized in a hot loop
|
||||
|
||||
### Fixed
|
||||
- Incorrect docstring on `coffi.mem/address-of` that implied some type of pointer type was returned rather than a long
|
||||
- Usage of deprecated `(Class/STATIC_FIELD)` access pattern
|
||||
|
||||
## [1.0.450] - 2024-10-02
|
||||
|
|
|
|||
|
|
@ -106,9 +106,7 @@
|
|||
(.allocate ^SegmentAllocator allocator (long size) (long alignment))))
|
||||
|
||||
(defn address-of
|
||||
"Gets the address of a given segment.
|
||||
|
||||
This value can be used as an argument to functions which take a pointer."
|
||||
"Gets the address of a given segment as a number."
|
||||
^long [addressable]
|
||||
(.address ^MemorySegment addressable))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue