You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
byteOffset should be the offset in the buffer, but here dataPtr is passed in.
I don't know why?
According to the doc, byteOffset is the offset (in bytes) of the Uint8Array from the start of its ArrayBuffer. But what cv._malloc(8) returned is an address. The former is a relative address, the latter is an absolute address. I think they're different.
The example is from opencv.js, and it run correctly.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
According to some examples, I found that
Module._malloc()
return the address of the alloced memory, something like the pointer.But in the example below:
byteOffset
should be the offset in the buffer, but here dataPtr is passed in.I don't know why?
According to the doc,
byteOffset
is the offset (in bytes) of the Uint8Array from the start of its ArrayBuffer. But whatcv._malloc(8)
returned is an address. The former is a relative address, the latter is an absolute address. I think they're different.The example is from opencv.js, and it run correctly.
The text was updated successfully, but these errors were encountered: