-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support marshaling struct pointers (#16)
This deals with two cases: where we have been provided with a pointer to a struct in the call to Marshal(), and also where we encounter a pointer while encoding a struct. The former case resulted in a panic (see #13), while the latter reported that Pointer types were not supported. The solution uses reflection to continually walk across pointers to get to the underlying value. Fixes #13
- Loading branch information
1 parent
4c9219e
commit 7a3d4a6
Showing
2 changed files
with
44 additions
and
0 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