summaryrefslogtreecommitdiff
path: root/node/Buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Buffer.hpp')
-rw-r--r--node/Buffer.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/node/Buffer.hpp b/node/Buffer.hpp
index bbf4ee37..fe63eb2e 100644
--- a/node/Buffer.hpp
+++ b/node/Buffer.hpp
@@ -1,6 +1,6 @@
/*
* ZeroTier One - Network Virtualization Everywhere
- * Copyright (C) 2011-2018 ZeroTier, Inc. https://www.zerotier.com/
+ * Copyright (C) 2011-2019 ZeroTier, Inc. https://www.zerotier.com/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -13,7 +13,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* --
*
@@ -116,9 +116,9 @@ public:
if (unlikely(b._l > C))
throw ZT_EXCEPTION_OUT_OF_BOUNDS;
if (C2 == C) {
- ZT_FAST_MEMCPY(this,&b,sizeof(Buffer<C>));
+ memcpy(this,&b,sizeof(Buffer<C>));
} else {
- ZT_FAST_MEMCPY(_b,b._b,_l = b._l);
+ memcpy(_b,b._b,_l = b._l);
}
return *this;
}
@@ -127,7 +127,7 @@ public:
{
if (unlikely(l > C))
throw ZT_EXCEPTION_OUT_OF_BOUNDS;
- ZT_FAST_MEMCPY(_b,b,l);
+ memcpy(_b,b,l);
_l = l;
}
@@ -281,7 +281,7 @@ public:
{
if (unlikely((_l + l) > C))
throw ZT_EXCEPTION_OUT_OF_BOUNDS;
- ZT_FAST_MEMCPY(_b + _l,b,l);
+ memcpy(_b + _l,b,l);
_l += l;
}