fix(*): size_t -> uint64_t
This commit is contained in:
@ -7,12 +7,12 @@
|
||||
|
||||
namespace base64
|
||||
{
|
||||
bool isValid(const char *str, size_t str_size) noexcept;
|
||||
bool isValid(const char *str, uint64_t str_size) noexcept;
|
||||
bool isValid(std::string_view str) noexcept;
|
||||
|
||||
void encode(const uint8_t *data, size_t data_size, char *str, size_t str_size);
|
||||
void encode(const uint8_t *data, uint64_t data_size, char *str, uint64_t str_size);
|
||||
std::string encode(std::span<const uint8_t> data) noexcept;
|
||||
|
||||
void decode(const char *str, size_t str_size, uint8_t *data, size_t data_size);
|
||||
void decode(const char *str, uint64_t str_size, uint8_t *data, uint64_t data_size);
|
||||
std::vector<uint8_t> decode(std::string_view str) noexcept;
|
||||
}
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
namespace baseN
|
||||
{
|
||||
bool isValid(const char *str, size_t str_size, const int8_t *map) noexcept;
|
||||
bool isValid(const char *str, uint64_t str_size, const int8_t *map) noexcept;
|
||||
bool isValid(std::string_view str, const int8_t *map) noexcept;
|
||||
|
||||
void encode(const uint8_t *data, uint64_t data_size, char *str, uint8_t base, const char *digits, uint64_t enc_size) noexcept;
|
||||
|
||||
@ -7,6 +7,6 @@
|
||||
#define SHA256_DIGEST_LENGTH 32
|
||||
|
||||
namespace hash {
|
||||
void sha256(const uint8_t *data, size_t data_size, uint8_t *hash) noexcept;
|
||||
void sha256(const uint8_t *data, uint64_t data_size, uint8_t *hash) noexcept;
|
||||
std::vector<uint8_t> sha256(std::span<const uint8_t> data) noexcept;
|
||||
}
|
||||
@ -7,12 +7,12 @@
|
||||
|
||||
namespace hex
|
||||
{
|
||||
bool isValid(const char *str, size_t str_size) noexcept;
|
||||
bool isValid(const char *str, uint64_t str_size) noexcept;
|
||||
bool isValid(std::string_view str) noexcept;
|
||||
|
||||
void encode(const uint8_t *data, size_t data_size, char *str, size_t str_size);
|
||||
void encode(const uint8_t *data, uint64_t data_size, char *str, uint64_t str_size);
|
||||
std::string encode(std::span<const uint8_t> data) noexcept;
|
||||
|
||||
void decode(const char *str, size_t str_size, uint8_t *data, size_t data_size);
|
||||
void decode(const char *str, uint64_t str_size, uint8_t *data, uint64_t data_size);
|
||||
std::vector<uint8_t> decode(std::string_view str) noexcept;
|
||||
}
|
||||
Reference in New Issue
Block a user