forked from niftich/magenta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[third_party][qrcodegen] remove remaining allocations
- an internal codewords array is used to assemble the codewords for drawing, instead of using the stack - an version of encodeBinary() that takes pointer and length use the module array as scratch space to assemble the datawords instead of allocating a BitBuffer. - defer erasing the module array until after we assemble the codewords to allow its use as temporary storage Change-Id: Id779319b19bca3e5f49a224d4ec93544038db065
- Loading branch information
Showing
2 changed files
with
190 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters