-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation of and access to M-ARRAY being contiguous #123
Comments
Technically, the objects in the array may not be contiguous. Some padding may be present between each object (for example with I don't see the point of having such an API ( Why do you need such an API or such a property? |
My actual desire is to have a sequential bytestring builder the same way that the Alternatively maybe some guidance about how an |
I can see potential solutions
** void name_acquire_direct_access(type **ptr, size_t *size, name_t array) : acquire a direct access to the container array. While the direct access is acquires, no function of array can be called except : I have yet to find how to make it works with the exception model. What should happen if an exception occurs within the direct access? Mmmmm.....
|
The current main documentation for M-ARRAY in the
README.md
does not explicitly state that the array allocation is contiguous in memory and there is no way to access the memory explicitly. From inspecting the source I can see this is the case currently, but having a stable guarantee would be nice.mlib/m-array.h
Lines 182 to 186 in 2c0db40
It would be nice if the documentation explained that the array guarantees contiguous memory and if there was a
name_data()
type access function similar to howstd::vector::data()
operates.The text was updated successfully, but these errors were encountered: