Removed network endianness conversion

Turns out the reference implementation does not use it…
This commit is contained in:
Théophile Bastian 2016-11-25 15:45:39 +01:00
parent 6b69cee089
commit 761d657f9b
1 changed files with 4 additions and 2 deletions

View File

@ -54,10 +54,12 @@ Bytes& Bytes::operator<<(u8 v) {
}
Bytes& Bytes::operator<<(u16 v) {
insertData<u16>(htons(v));
// insertData<u16>(htons(v));
return *this;
}
Bytes& Bytes::operator<<(u32 v) {
insertData<u32>(htonl(v));
// insertData<u32>(htonl(v));
return *this;
}
Bytes& Bytes::operator<<(u64 v) {
@ -84,12 +86,12 @@ Bytes& Bytes::operator>>(u8& v) {
}
Bytes& Bytes::operator>>(u16& v) {
extractData<u16>(v);
htons(v);
// v = htons(v);
return *this;
}
Bytes& Bytes::operator>>(u32& v) {
extractData<u32>(v);
htonl(v);
// v = htonl(v);
return *this;
}
Bytes& Bytes::operator>>(u64& v) {