Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
REFACTORING: supporting a list of bytes #685
@josedonizetti That's a good start, since most IO users won't ever ungetc. However I was thinking of something more like a byte-based ArrayList where we could simply unget an additional byte by setting a byte element and moving an offset.
Heh, as I wrote this it suddenly occurred to me: we have ByteList. So what if we just use a ByteList and ungetc appends a byte into it and removes bytes from it, rather than using LinkedList? I don't think the code would change much.