* Add more testing for ReadOnlySpan parsing * Update `AssertReadFromParseContext` to also run assertions for a `ParseContext` initialized from a `ReadOnlySpan` of the given input. * Remove passing `ReadOnlySpan` parameters by ref since they are not altered and the type isn't large enough to benefit from performance improvements for passing by `ref` or `in` * Update `ParseContext` `Initialize` overloads for `ReadOnlySpan<byte>`, going down to two (since nothing was calling the overload that changed the recursion limit). The first now calls the second to set the `buffer` and `state` on the context, and has documentation to note that it is used to create a `ParserInternalState` with default settings.pull/8473/head
parent
2f0e269725
commit
1252f3e147
5 changed files with 32 additions and 28 deletions
Loading…
Reference in new issue