-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert
NodeId
from an alias for usize
to u32-sized opaque type
Align the representation of NodeId values with the FlatBuffers schema, which uses `uint` (u32) as the type, except for operator inputs and outputs where `int`s are used, with negative values representing missing optional inputs. Since node IDs are in the range `[0, i32::MAX]` we can reserve higher values as a niche, making `Option<NodeId>` the same size as a `NodeId`.
- Loading branch information
1 parent
aa1d23a
commit 2a64faf
Showing
5 changed files
with
130 additions
and
75 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 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
Oops, something went wrong.