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
Sometimes I need to read all elements of a dynamically sized array. This can be slow, especially with a high latency remote debugging connection to the target. So I would really like an API for reading all elements of the array at once, so that I can read the array with a small number of round trips to the target. I came up with this workaround (for my current use case, which is reading the KASAN ring buffer):
But it would be nice if there were a better way to do this. One possibility might be a read_array_() method for objects of pointer type that reads a specified number of elements via the pointer and returns the array.
The text was updated successfully, but these errors were encountered:
Sometimes I need to read all elements of a dynamically sized array. This can be slow, especially with a high latency remote debugging connection to the target. So I would really like an API for reading all elements of the array at once, so that I can read the array with a small number of round trips to the target. I came up with this workaround (for my current use case, which is reading the KASAN ring buffer):
But it would be nice if there were a better way to do this. One possibility might be a
read_array_()
method for objects of pointer type that reads a specified number of elements via the pointer and returns the array.The text was updated successfully, but these errors were encountered: