Skip to content

Fix bytesplice#191

Open
HoneyryderChuck wants to merge 2 commits into
igrigorik:mainfrom
HoneyryderChuck:fix-bytesplice
Open

Fix bytesplice#191
HoneyryderChuck wants to merge 2 commits into
igrigorik:mainfrom
HoneyryderChuck:fix-bytesplice

Conversation

@HoneyryderChuck

Copy link
Copy Markdown
Collaborator

fix String#bytesplice usage, which in order to be able to cut UTF-8 characters, requires the string to be encoded as binary, otherwise it'll raise a range error.

most of the strings passed to #read_str come from downstream usage of itself, so there are more chances of reducing string creation by returning binary strings.

…haracters, requires the string to be encoded as binary, otherwise it'll raise a range error

most of the strings passed to #read_str come from downstream usage of itself, so there are more chances of reducing string creation by returning binary strings
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