aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/openssl/big_integer/big_integer.h
diff options
context:
space:
mode:
authorkomels <komels@yandex-team.ru>2022-04-15 16:53:39 +0300
committerkomels <komels@yandex-team.ru>2022-04-15 16:53:39 +0300
commit703a2fb6e100d202d1c7fcd052d73bd5affef408 (patch)
tree22b7320c06bb04d86dbf7b9af9ae44281331cd15 /library/cpp/openssl/big_integer/big_integer.h
parent3375bbfda1e2afb03aa2072bf5f2f2c3a26026e8 (diff)
downloadydb-703a2fb6e100d202d1c7fcd052d73bd5affef408.tar.gz
Move 'kikimr/yndx'-depending tests out of ydb/core
ref:0a380e13308d579e0545a76924330d1ca5129c43
Diffstat (limited to 'library/cpp/openssl/big_integer/big_integer.h')
-rw-r--r--library/cpp/openssl/big_integer/big_integer.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/library/cpp/openssl/big_integer/big_integer.h b/library/cpp/openssl/big_integer/big_integer.h
deleted file mode 100644
index 07763c5e13..0000000000
--- a/library/cpp/openssl/big_integer/big_integer.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#pragma once
-
-#include <util/generic/ptr.h>
-#include <util/generic/strbuf.h>
-#include <util/generic/utility.h>
-#include <util/generic/string.h>
-
-struct bignum_st;
-
-namespace NOpenSsl {
- class TBigInteger {
- inline TBigInteger(bignum_st* impl) noexcept
- : Impl_(impl)
- {
- }
-
- static int Compare(const TBigInteger& a, const TBigInteger& b) noexcept;
-
- public:
- inline TBigInteger(TBigInteger&& other) noexcept {
- Swap(other);
- }
-
- ~TBigInteger() noexcept;
-
- static TBigInteger FromULong(ui64 value);
- static TBigInteger FromRegion(const void* ptr, size_t len);
-
- inline const bignum_st* Impl() const noexcept {
- return Impl_;
- }
-
- inline bignum_st* Impl() noexcept {
- return Impl_;
- }
-
- inline void Swap(TBigInteger& other) noexcept {
- DoSwap(Impl_, other.Impl_);
- }
-
- inline friend bool operator==(const TBigInteger& a, const TBigInteger& b) noexcept {
- return Compare(a, b) == 0;
- }
-
- inline friend bool operator!=(const TBigInteger& a, const TBigInteger& b) noexcept {
- return !(a == b);
- }
-
- size_t NumBytes() const noexcept;
- size_t ToRegion(void* to) const noexcept;
-
- TString ToDecimalString() const;
-
- private:
- bignum_st* Impl_ = nullptr;
- };
-}