mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Cleanup.
This commit is contained in:
parent
b9e1d53d7a
commit
5e2ea4a81a
1 changed files with 0 additions and 16 deletions
|
@ -110,11 +110,6 @@ public:
|
||||||
copyFrom(b,l);
|
copyFrom(b,l);
|
||||||
}
|
}
|
||||||
|
|
||||||
Buffer(const std::string &s)
|
|
||||||
{
|
|
||||||
copyFrom(s.data(),s.length());
|
|
||||||
}
|
|
||||||
|
|
||||||
template<unsigned int C2>
|
template<unsigned int C2>
|
||||||
inline Buffer &operator=(const Buffer<C2> &b)
|
inline Buffer &operator=(const Buffer<C2> &b)
|
||||||
{
|
{
|
||||||
|
@ -290,17 +285,6 @@ public:
|
||||||
_l += l;
|
_l += l;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Append a string
|
|
||||||
*
|
|
||||||
* @param s String to append
|
|
||||||
* @throws std::out_of_range Attempt to append beyond capacity
|
|
||||||
*/
|
|
||||||
inline void append(const std::string &s)
|
|
||||||
{
|
|
||||||
append(s.data(),(unsigned int)s.length());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Append a C string including null termination byte
|
* Append a C string including null termination byte
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue