-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra private type field to HandleContext
There used to be something similar, but then it was removed and the handle type was used to select the union contents, but then these fields needed to be sized because they may or may not be empty depending on the context. Instead, reintroduce a distinct context type that is separate from the handle type, have this correspond to concrete go types, and have some of these types map to nothing in the union. This way, we can guarantee that ObjectContext.Public will always return something, except after HandleContext.Dispose is called, and we can avoid returning ObjectContext and NVIndexContext implementations where it really doesn't make sense.
- Loading branch information
1 parent
3c41d9a
commit 57a0ce4
Showing
18 changed files
with
522 additions
and
310 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
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.