summaryrefslogtreecommitdiff
path: root/queue.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2023-04-15 16:45:02 -0400
committerGitHub <noreply@github.com>2023-04-15 16:45:02 -0400
commitf5f63850f9a5521e45de3cc45be61309a2e71ab2 (patch)
treed9ec904ebd511ae673e89790a407f0cdcf0b9bbc /queue.cpp
parent358d0cfecd593d55160df38e133b9450aaf1cd59 (diff)
downloadcryptopp-git-f5f63850f9a5521e45de3cc45be61309a2e71ab2.tar.gz
Use std namespace for memset, memcpy, memcmp (#1204)
Diffstat (limited to 'queue.cpp')
-rw-r--r--queue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/queue.cpp b/queue.cpp
index 021e86a0..8b302366 100644
--- a/queue.cpp
+++ b/queue.cpp
@@ -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)
{