Skip to content
Snippets Groups Projects
  • Simon Tatham's avatar
    32d61d7c
    Add some more marshalling functions, for file parsing. · 32d61d7c
    Simon Tatham authored
    There are new functions here to get the next contiguous string of
    characters from a given set (like strspn/strcspn, only for
    BinarySource, and returning a ptrlen of what they skipped over). Also
    we can get a line of text with the trailing newline chomped off.
    Finally, I've provided a function to rewind a BinarySource to a
    previous position with error checking.
    32d61d7c
    History
    Add some more marshalling functions, for file parsing.
    Simon Tatham authored
    There are new functions here to get the next contiguous string of
    characters from a given set (like strspn/strcspn, only for
    BinarySource, and returning a ptrlen of what they skipped over). Also
    we can get a line of text with the trailing newline chomped off.
    Finally, I've provided a function to rewind a BinarySource to a
    previous position with error checking.