Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bytea backend text decoder #59

Merged
merged 2 commits into from
Sep 25, 2013
Merged

Bytea backend text decoder #59

merged 2 commits into from
Sep 25, 2013

Conversation

glenebob
Copy link
Contributor

Hi Francisco,

This takes @Rungee's bytea hex format text decoder optimization to the next level and makes it operate directly on the byte[].

I also optimized the old escape format decoder just in case anyone still cares :)

Also a couple bug fixes (one mine, one Rungee's). All tests pass again.

-Glen

Optimize the hex format decoder to work directly on the byte[] backend data.
Fix bug causing output byte[] to be one extra byte in length.
Optimize the bytea escape format decoder to operate directly on the byte[].
Fix bug in escape format encoder (missing digit 7 in the lookup array).
franciscojunior added a commit that referenced this pull request Sep 25, 2013
@franciscojunior franciscojunior merged commit 803fc80 into npgsql:master Sep 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants