diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-09 19:07:40 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-04-09 19:07:40 -0400 |
commit | e5cf34ed328d029ec25ed351a856237219e0a6f9 (patch) | |
tree | 26ebb3dfbaeead983c6c19066411b6b2c696fdc6 /secblock.h | |
parent | 0af5b86ce746656901501edcbf73c9749b861134 (diff) | |
download | cryptopp-git-e5cf34ed328d029ec25ed351a856237219e0a6f9.tar.gz |
Update SecBlock documentation
Diffstat (limited to 'secblock.h')
-rw-r--r-- | secblock.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -947,7 +947,7 @@ public: void Append(const T *ptr, size_type len)
{
if (ELEMS_MAX - m_size < len)
- throw InvalidArgument("Append: buffer overflow");
+ throw InvalidArgument("SecBlock: buffer overflow");
const size_type oldSize = m_size;
Grow(m_size+len);
@@ -968,7 +968,7 @@ public: void Append(const SecBlock<T, A> &t)
{
if (ELEMS_MAX - m_size < t.m_size)
- throw InvalidArgument("Append: buffer overflow");
+ throw InvalidArgument("SecBlock: buffer overflow");
const size_type oldSize = m_size;
if (this != &t) // s += t
@@ -999,7 +999,7 @@ public: void Append(size_type count, T value)
{
if (ELEMS_MAX - m_size < count)
- throw InvalidArgument("Append: buffer overflow");
+ throw InvalidArgument("SecBlock: buffer overflow");
const size_type oldSize = m_size;
Grow(m_size+count);
@@ -1033,6 +1033,7 @@ public: /// \brief Assign contents from another SecBlock
/// \param t the other SecBlock
+ /// \return reference to this SecBlock
/// \details Internally, operator=() calls Assign().
/// \details If the memory block is reduced in size, then the reclaimed
/// memory is set to 0. If an assignment occurs, then Assign() resets
@@ -1047,6 +1048,7 @@ public: /// \brief Append contents from another SecBlock
/// \param t the other SecBlock
+ /// \return reference to this SecBlock
/// \details Internally, operator+=() calls Append().
/// \since Crypto++ 2.0
SecBlock<T, A>& operator+=(const SecBlock<T, A> &t)
|