MCPcopy Create free account
hub / github.com/cuberite/cuberite / ReadLEInt

Method ReadLEInt

src/ByteBuffer.cpp:471–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469
470
471bool cByteBuffer::ReadLEInt(int & a_Value)
472{
473 CHECK_THREAD;
474 CheckValid();
475 NEEDBYTES(4);
476 ReadBuf(&a_Value, 4);
477
478 #ifdef IS_BIG_ENDIAN
479 // Convert:
480 a_Value = ((a_Value >> 24) & 0xff) | ((a_Value >> 16) & 0xff00) | ((a_Value >> 8) & 0xff0000) | (a_Value & 0xff000000);
481 #endif
482
483 return true;
484}
485
486
487

Callers 2

ReceiveResponseMethod · 0.80
ParsePacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected