aboutsummaryrefslogtreecommitdiffstats
path: root/src/big_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/big_base.cpp')
-rw-r--r--src/big_base.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/big_base.cpp b/src/big_base.cpp
index 20d6f4ece..158d967fb 100644
--- a/src/big_base.cpp
+++ b/src/big_base.cpp
@@ -375,4 +375,12 @@ void BigInt::binary_decode(const byte buf[], u32bit length)
reg[length / WORD_BYTES] = (reg[length / WORD_BYTES] << 8) | buf[j];
}
+/*************************************************
+* Set this number to the value in buf *
+*************************************************/
+void BigInt::binary_decode(const MemoryRegion<byte>& buf)
+ {
+ binary_decode(buf, buf.size());
+ }
+
}