summaryrefslogtreecommitdiffstats
path: root/src/common/hex_util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* service: fs: Skip non user id foldersNarr the Reg2024-02-021-0/+3
|
* chore: add missing SPDX tagsAndrea Pappacoda2022-04-281-3/+3
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* common: Reduce unused includesameerj2022-03-191-1/+0
|
* hex_util: Fix incorrect array size in AsArrayMorph2021-08-051-1/+1
| | | | Although this isn't used, this is a potential bug as HexStringToArray will perform an out-of-bounds read.
* General: Resolve fmt specifiers to adhere to 8.0.0 API where applicableLioncash2021-06-231-1/+2
| | | | Also removes some deprecated API usages.
* core/CMakeLists: Make some warnings errorsLioncash2020-10-131-5/+5
| | | | | | | | | Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
* common: Make use of [[nodiscard]] where applicableLioncash2020-08-151-6/+6
| | | | | | Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
* partition_data_manager: Make data arrays constexprLioncash2020-08-061-6/+23
| | | | | | | | | | | | | 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: Reserve std::string memory ahead of timeLioncash2019-06-121-0/+5
| | | | | | | | Avoids potentially performing multiple reallocations (depending on the size of the input data) by reserving the necessary amount of memory ahead of time. This is trivially doable, so there's no harm in it.
* common/hex_util: Combine HexVectorToString() and HexArrayToString()Lioncash2019-06-121-4/+7
| | | | | | 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 usageZach Hilman2018-10-041-1/+1
|
* hex_util: Add HexVectorToString and HexStringToVectorZach Hilman2018-10-041-0/+5
| | | | Converts between bytes and strings when the size is not known at compile time.
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-6/+6
|
* common: Namespace hex_util.h/.cppLioncash2018-08-161-0/+4
| | | | | It's in the common code, so it should be under the Common namespace like everything else.
* file_sys: Comply to style guidelinesZach Hilman2018-08-121-0/+2
|
* common: Move hex string processing to separate fileZach Hilman2018-08-121-0/+35