Skip to content

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