Backported various little edits from Pro edition.
This commit is contained in:
parent
ef9938da0c
commit
4c9c6fa7ba
78 changed files with 2334 additions and 1266 deletions
|
@ -15,7 +15,7 @@ namespace Bit{
|
|||
//Host to binary/binary to host functions - similar to kernel ntoh/hton functions.
|
||||
|
||||
/// Retrieves a short in network order from the pointer p.
|
||||
inline unsigned short btohs(char * p) {
|
||||
inline unsigned short btohs(const char * p) {
|
||||
return ((unsigned short)p[0] << 8) | p[1];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue