Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added require methods #23

Merged
merged 2 commits into from Sep 29, 2023
Merged

Added require methods #23

merged 2 commits into from Sep 29, 2023

Conversation

dr7ana
Copy link
Collaborator

@dr7ana dr7ana commented Sep 29, 2023

  • ::require() will search a bt dict for a key and throw upon fail
  • ::require_{integer,string}() will combine calls to require() and consume_{integer,string}()
  • added unit tests

oxenc/bt_serialize.h Outdated Show resolved Hide resolved
oxenc/bt_serialize.h Outdated Show resolved Hide resolved
@dr7ana dr7ana force-pushed the safe_fetch branch 2 times, most recently from e44cfff to ed2e67e Compare September 29, 2023 16:24
oxenc/bt_serialize.h Outdated Show resolved Hide resolved
@dr7ana dr7ana force-pushed the safe_fetch branch 2 times, most recently from 3bfdc70 to 466623b Compare September 29, 2023 17:08
- ::required() will search a bt dict for a key and throw upon fail
- ::require<type_t>() will combine calls to required() and consume_{type_t}()
- added unit tests
@dr7ana dr7ana merged commit d6f300d into oxen-io:dev Sep 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants