Add comments to u32_from_BE in header file

This commit is contained in:
pscott
2021-04-21 17:09:45 +02:00
parent dafdc404ac
commit d701f75197

View File

@@ -31,7 +31,8 @@ int local_strchr(char* string, char ch);
// `itoa` for uint32_t.
void u32_to_str(char* dest, uint8_t dest_size, uint32_t in);
// Converts a list of bytes (in BE) of length `size` to a uint32_t.
// Converts a list of bytes (in BE) of length `size` to a uint32_t. `strict` will make the function
// throw if the size is > 4.
uint32_t u32_from_BE(uint8_t* in, uint8_t size, bool strict);
void amountToString(uint8_t* amount,