| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously the constructor for all of these would run at program
startup, consuming time before the application can enter main().
This is also particularly dangerous, given the logging system wouldn't
have been initialized properly yet, yet the program would use the logs
to signify an error.
To rectify this, we can replace the literals with constexpr functions
that perform the conversion at compile-time, completely eliminating the
runtime cost of initializing these arrays.
|
|
|
|
|
|
| |
These can be generified together by using a concept type to designate
them. This also has the benefit of not making copies of potentially very
large arrays.
|
| |
|
|
|
|
| |
Converts between bytes and strings when the size is not known at compile time.
|
| |
|
|
|
|
| |
Makes it so malformed hex strings do not crash the entire program.
|
|
|
|
|
| |
It's in the common code, so it should be under the Common namespace like
everything else.
|
|
|