MCPcopy Create free account
hub / github.com/ddnet/ddnet / bytes_be_to_uint

Function bytes_be_to_uint

src/base/bytes.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static_assert(sizeof(unsigned) == sizeof(int), "unsigned and int must have the same size");
34
35unsigned bytes_be_to_uint(const unsigned char *bytes)
36{
37 return ((bytes[0] & 0xffu) << 24u) | ((bytes[1] & 0xffu) << 16u) | ((bytes[2] & 0xffu) << 8u) | (bytes[3] & 0xffu);
38}
39
40void uint_to_bytes_be(unsigned char *bytes, unsigned value)
41{

Callers 14

NumMarkersMethod · 0.85
LengthMethod · 0.85
MapSizeMethod · 0.85
GetTicksMethod · 0.85
GetTimeMethod · 0.85
CheckHeaderMapMethod · 0.85
FromUuidMethod · 0.85
FindItemMethod · 0.85
AddExtendedItemTypeMethod · 0.85
ReadChunkHeaderMethod · 0.85
LoadMethod · 0.85
GetDemoInfoMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68