Skip to content

Describe the maximum size of the decoded buffer #10

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

Merged
merged 1 commit into from
Dec 18, 2021

Conversation

GabrielMajeri
Copy link
Collaborator

To help with issues like #9, this PR updates the decode/decode_with documentation to specify that the output buffer should be at least three times as big as the number of characters in the input, since each 2-byte UCS-2 character could end up as a 3-byte UTF-8 character.

@GabrielMajeri GabrielMajeri merged commit da85329 into master Dec 18, 2021
@nicholasbishop nicholasbishop deleted the document-decode-behavior branch April 9, 2023 16:44
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