Home
last modified time | relevance | path

Searched refs:lebytes (Results 1 – 2 of 2) sorted by relevance

/external/nanopb-c/
Dpb_encode.c429 uint8_t lebytes[4]; in pb_encode_fixed32() local
430 lebytes[0] = bytes[3]; in pb_encode_fixed32()
431 lebytes[1] = bytes[2]; in pb_encode_fixed32()
432 lebytes[2] = bytes[1]; in pb_encode_fixed32()
433 lebytes[3] = bytes[0]; in pb_encode_fixed32()
434 return pb_write(stream, lebytes, 4); in pb_encode_fixed32()
444 uint8_t lebytes[8]; in pb_encode_fixed64() local
445 lebytes[0] = bytes[7]; in pb_encode_fixed64()
446 lebytes[1] = bytes[6]; in pb_encode_fixed64()
447 lebytes[2] = bytes[5]; in pb_encode_fixed64()
[all …]
Dpb_decode.c996 uint8_t lebytes[4]; in pb_decode_fixed32() local
998 if (!pb_read(stream, lebytes, 4)) in pb_decode_fixed32()
1001 bytes[0] = lebytes[3]; in pb_decode_fixed32()
1002 bytes[1] = lebytes[2]; in pb_decode_fixed32()
1003 bytes[2] = lebytes[1]; in pb_decode_fixed32()
1004 bytes[3] = lebytes[0]; in pb_decode_fixed32()
1015 uint8_t lebytes[8]; in pb_decode_fixed64() local
1017 if (!pb_read(stream, lebytes, 8)) in pb_decode_fixed64()
1020 bytes[0] = lebytes[7]; in pb_decode_fixed64()
1021 bytes[1] = lebytes[6]; in pb_decode_fixed64()
[all …]