diff options
author | Jeffrey Walton <noloader@gmail.com> | 2023-04-15 16:45:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 16:45:02 -0400 |
commit | f5f63850f9a5521e45de3cc45be61309a2e71ab2 (patch) | |
tree | d9ec904ebd511ae673e89790a407f0cdcf0b9bbc /queue.cpp | |
parent | 358d0cfecd593d55160df38e133b9450aaf1cd59 (diff) | |
download | cryptopp-git-f5f63850f9a5521e45de3cc45be61309a2e71ab2.tar.gz |
Use std namespace for memset, memcpy, memcmp (#1204)
Diffstat (limited to 'queue.cpp')
-rw-r--r-- | queue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -50,7 +50,7 @@ public: if (!begin || !length) return length;
size_t l = STDMIN(length, MaxSize()-m_tail);
if (m_buf+m_tail != begin)
- memcpy(m_buf+m_tail, begin, l);
+ std::memcpy(m_buf+m_tail, begin, l);
m_tail += l;
return l;
}
@@ -67,7 +67,7 @@ public: inline size_t Peek(byte *target, size_t copyMax) const
{
size_t len = STDMIN(copyMax, m_tail-m_head);
- memcpy(target, m_buf+m_head, len);
+ std::memcpy(target, m_buf+m_head, len);
return len;
}
@@ -410,7 +410,7 @@ void ByteQueue::Unget(const byte *inString, size_t length) size_t len = STDMIN(length, m_head->m_head);
length -= len;
m_head->m_head = m_head->m_head - len;
- memcpy(m_head->m_buf + m_head->m_head, inString + length, len);
+ std::memcpy(m_head->m_buf + m_head->m_head, inString + length, len);
if (length > 0)
{
|