HomePhabricator

util: Add ParseUInt32 and ParseUInt64
e012f3cea0caUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

util: Add ParseUInt32 and ParseUInt64

Add error and range-checking parsers for unsigned 32 and 64 bit numbers.
The 32-bit variant is required for parsing sequence numbers from the
command line in bitcoin-tx (see #8164 for discussion). I've thrown in
the 64-bit variant as a bonus, as I'm sure it will be needed at some
point.

Also adds tests, and updates developer-notes.md.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Jun 8 2016, 08:23
deadalnixPushed on May 14 2017, 22:04
Parents
rABC0f24eaf253ab: Merge #8164: [Bitcoin-Tx] fix missing test fixtures, fix 32bit atoi issue
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABCe012f3cea0ca: util: Add ParseUInt32 and ParseUInt64 (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jun 8 2016, 08:28