Update type hinting for alloc-instance based on size-of
This commit is contained in:
parent
b960c01bb3
commit
b029a41f6a
1 changed files with 2 additions and 2 deletions
|
|
@ -397,8 +397,8 @@
|
|||
|
||||
(defn alloc-instance
|
||||
"Allocates a memory segment for the given `type`."
|
||||
([type] (alloc-instance type (connected-scope)))
|
||||
([type scope] (MemorySegment/allocateNative (long (size-of type)) ^ResourceScope scope)))
|
||||
(^MemorySegment [type] (alloc-instance type (connected-scope)))
|
||||
(^MemorySegment [type scope] (MemorySegment/allocateNative ^long (size-of type) ^ResourceScope scope)))
|
||||
|
||||
(declare serialize serialize-into)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue