Skip to content
Discussion options

You must be logged in to vote

is there a way to allocate an uarray, that start at a specified memory address ? (in that simplified example it could be 0x0100, or 0x0200, don’t care)

No, there isn't. One has to allocate twice the memory, do some math to determine the offset and then use that offset address. On the Python side setting up a memoryview from offset to offset+size will give you a smaller array within the bigger one.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Hypnoziss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants