I think you have to create a function like
    
    
    proc fromBuffer(a: var seq[int], b: Array[int]) =
      a.setLen(maxElems)
      for i in 0 ..< maxElems:
        a[i] = b.data[i]
        # wasMoved(b.data[i]) # i think this tells that destruction happened or 
is unnecessary
    
    
    Run

Maybe it can be wrapped in a converter if you want auto-conversion.

Reply via email to