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

Make encodings abstract, add native_endian/big_endian methods #3

Merged
merged 2 commits into from
Jun 16, 2015

Conversation

ScottPJones
Copy link
Collaborator

This change allows you do simply deal with the abstract UTF16, instead of big-endian vs. little-endian variants (which only is an issue when you have to store them into bytes).
For example, next will return a Char, not a sequence of bytes, so you can write a function that handles UTF16 encoding, and pass it something that is UTF16OE, and it will handle the byte-swapping for you.

@ScottPJones
Copy link
Collaborator Author

@quinnj You'd asked for a PR for this, do you want to go ahead and merge this? Thanks!

quinnj added a commit that referenced this pull request Jun 16, 2015
Make encodings abstract, add native_endian/big_endian methods
@quinnj quinnj merged commit e97f7e1 into quinnj:master Jun 16, 2015
@quinnj
Copy link
Owner

quinnj commented Jun 16, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants