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

Function read_u16

win/share/giftiles.c:449–454  ·  view source on GitHub ↗

Decode an unsigned 16 bit quantity */

Source from the content-addressed store, hash-verified

447
448/* Decode an unsigned 16 bit quantity */
449static unsigned short
450read_u16(const unsigned char buf[2])
451{
452 return ((unsigned short)buf[0] << 0)
453 | ((unsigned short)buf[1] << 8);
454}
455
456static boolean
457read_data_block(struct Bitstream *gif, struct DataBlock *block)

Callers 1

read_gif_tilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected