aboutsummaryrefslogtreecommitdiffstats
path: root/src/big_base.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-03-01 01:22:13 +0000
committerlloyd <[email protected]>2007-03-01 01:22:13 +0000
commit758974e833aca9cd7403fd1835efd84e6e861d3a (patch)
tree269eb8e447b1b93c82a18ed8aea371cd0968920c /src/big_base.cpp
parentafcd75d5f60be62e7a9dfc8e1a1cda3fc3d0762e (diff)
Add a version of BigInt::binary_decode taking a MemoryRegion of bytes
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());
+ }
+
}