-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move array parsing to use const generics
* Implement `BinRead` for all array lengths using const generics. * Fix array initialization via `MaybeUninit`. * Restore the old code and put the new one behind a feature gate. * Use the array-init crate over manual unsafe initialization. Ported from jam1garner/binread#41
- Loading branch information
1 parent
e055ab6
commit e80c8f8
Showing
2 changed files
with
20 additions
and
28 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
This Copy constraint is not necessary, is it? (Should be cloning the args.)