forked from tediousjs/tedious
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Token parsing modified to use a ReadableTrackingBuffer, removing the …
…need to track the position within the buffer within the token parsing. This is a complex and wide ranging change, that significantly simplifies token parsing, and makes it easier to read and maintain. Any attempt to read past the end of the available buffer results in an exception being thrown. This may have a small runtime overhead, but it's worth it because of the simplified code. Functions added to ReadableTrackingBuffer for more data types. Functions added to WritableTrackingBuffer for more data types. Many unit tests converted to use WritableTrackingBuffer, to avoid them needing to track the position withing the buffer.
- Loading branch information
Showing
21 changed files
with
469 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.