1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:47:44 +00:00

LibCrypto: Define *BigInteger::to_base to convert big integers to String

This commit is contained in:
Timothy Flynn 2023-01-13 11:40:04 -05:00 committed by Linus Groh
parent 0ddc2e1f50
commit 3ad1f250e7
5 changed files with 28 additions and 12 deletions

View file

@ -12,6 +12,7 @@
#include <AK/Concepts.h>
#include <AK/DeprecatedString.h>
#include <AK/Span.h>
#include <AK/String.h>
#include <AK/Types.h>
#include <AK/Vector.h>
@ -63,6 +64,7 @@ public:
size_t export_data(Bytes, bool remove_leading_zeros = false) const;
[[nodiscard]] static UnsignedBigInteger from_base(u16 N, StringView str);
[[nodiscard]] ErrorOr<String> to_base(u16 N) const;
[[nodiscard]] DeprecatedString to_base_deprecated(u16 N) const;
[[nodiscard]] u64 to_u64() const;