Added setters for fr::URL components + ability to get whole URL

This commit is contained in:
Fred Nicolson
2019-06-25 14:53:34 +01:00
parent 134940138a
commit a515cf7c92
3 changed files with 88 additions and 4 deletions
+2 -2
View File
@@ -7,10 +7,10 @@
#include <algorithm>
#include "frnetlib/NetworkEncoding.h"
constexpr bool is_little_endian()
bool is_little_endian()
{
unsigned short x=0x0001;
auto p = reinterpret_cast<unsigned char*>(&x);
auto p = (unsigned char*)(&x);
return *p != 0;
}