-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from BrainlessLabs/development
Development
- Loading branch information
Showing
9 changed files
with
61,783 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
#include<cstdint> | ||
#include<boost/endian/conversion.hpp> | ||
|
||
namespace bun { | ||
inline bool is_big_endian() { | ||
static const std::uint16_t val = 1; | ||
static const std::uint8_t* c = (std::uint8_t*)(&val); | ||
static const bool ret = *c ? false : true; | ||
return ret; | ||
} | ||
} |
Oops, something went wrong.