aboutsummaryrefslogblamecommitdiffstats
path: root/libparsepcf_parse_msb_uint16__.c
blob: 9c899c494741896447621d4a2c0a6facd04a932b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                         
/* See LICENSE file for copyright and license details. */
#include "common.h"


uint16_t
libparsepcf_parse_msb_uint16__(const void *buf)
{
	const uint8_t *bs = buf;
	uint16_t a = (uint16_t)bs[0] << 8;
	uint16_t b = (uint16_t)bs[1] << 0;
	return a | b;
}