-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
On these lines there is an assumption that bytes are pinned, which is absolutely does not have to be the case:
I am not sure whether there exists an equivalent of hPutBuf for ByteArrays (probably not, since it is implemented in terms of system calls, which requires a pointer), so if there is not, then the safest thing to do would be to create a helper like this that checks whether ByteArray is pinned and make a pinned copy otherwise, which then in turn can be used as a Ptr
Metadata
Metadata
Assignees
Labels
No labels