summaryrefslogtreecommitdiff
path: root/src/common/hex_util.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chore: add missing SPDX tagsGravatar Andrea Pappacoda2022-04-281-3/+3
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* partition_data_manager: Make data arrays constexprGravatar Lioncash2020-08-061-34/+0
| | | | | | | | | | | | | 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.
* common/hex_util: Combine HexVectorToString() and HexArrayToString()Gravatar Lioncash2019-06-121-7/+0
| | | | | | 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.
* ips_layer: Deduplicate resource usageGravatar Zach Hilman2018-10-041-1/+1
|
* hex_util: Add HexVectorToString and HexStringToVectorGravatar Zach Hilman2018-10-041-0/+19
| | | | Converts between bytes and strings when the size is not known at compile time.
* Port #4182 from Citra: "Prefix all size_t with std::"Gravatar fearlessTobi2018-09-151-2/+2
|
* hex_util: Replace logic_errors with LOG_CRITICALGravatar Zach Hilman2018-08-231-5/+17
| | | | Makes it so malformed hex strings do not crash the entire program.
* common: Namespace hex_util.h/.cppGravatar Lioncash2018-08-151-0/+4
| | | | | It's in the common code, so it should be under the Common namespace like everything else.
* common: Move hex string processing to separate fileGravatar Zach Hilman2018-08-111-0/+27