Skip to content

Conversation

bartekn
Copy link
Contributor

@bartekn bartekn commented Sep 14, 2018

Current implementation of String.read and String.write assumed that
parameters and return values must be utf-8 encoded strings. However, XDR
specification does not enforce any string encoding. XDR strings can
contain any bytes.

This commit changes String.read to return Buffer, instead of utf-8
encoded string and String.write to accept arrays and buffers.

Current implementation of String.read and String.write assumed that
parameters and return values must be utf-8 encoded strings. However, XDR
specification does not enforce any string encoding. XDR strings can
contain any bytes.

This commit changes String.read to return Buffer, instead of utf-8
encoded string and String.write to accept arrays and buffers.
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.

1 participant