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
In this patch, we add an inverse to .fetch_int(), named .to_integer() in resemblance with the Python method int.to_bytes().
For symmetry, we then rename .fetch_int() to .from_integer(): I, for one, could never remember if .fetch_int() refers to "fetching an element from an int" or "fetching this element into an int", so I think the new name makes a lot more sense.
Also, some code cleanup and optimization while we're at it.