Ability to extend a MemorySegment

Ty Young youngty1997 at gmail.com
Mon Jan 20 21:53:47 UTC 2020


Hi,


Would it be possible to add the ability to extend a memory segment(in 
other words, increase its limit)? Right now it's not possible to 
implement dynamic arrays(read: ArrayList like arrays) as it's not 
possible to calculate the length of a SequenceLayout that has no 
specified length. You can work around this by creating a new array and 
copying the contents of the old array to it but that seems inefficient...



More information about the panama-dev mailing list