MCPcopy Create free account
hub / github.com/NetHack/NetHack / read_u16

Function read_u16

win/share/bmptiles.c:537–542  ·  view source on GitHub ↗

Decode an unsigned 16 bit quantity */

Source from the content-addressed store, hash-verified

535
536/* Decode an unsigned 16 bit quantity */
537static uint16
538read_u16(const unsigned char buf[2])
539{
540 return ((uint16)buf[0] << 0)
541 | ((uint16)buf[1] << 8);
542}
543
544/* Decode an unsigned 32 bit quantity */
545static uint32

Callers 2

read_bmp_tilesFunction · 0.70
read_info_headerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected