Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Flawed safe_dump_to(..) API #62
I'm trying to save a stacktrace to raw memory using the
This means that when I come to read this data, I have no idea what to put in the size field of
This SSCE demonstrates the problem:
The second 'ST' line is just to show what is expected. The first line fails because I'm trying to treat the frame count as a byte size, which it obviously isn't.
So how is the API supposed to be used?
You're right the API may be confusing.
Here' a non trivial example on that
If you do wish to get the actually consumed bytes, you should