Lines Matching refs:val
34 char *WriteDataInBig(char *p, T val) { in WriteDataInBig() argument
35 if (sizeof(val) == 1) { in WriteDataInBig()
36 *p++ = val; in WriteDataInBig()
38 switch (sizeof(val)) { in WriteDataInBig()
40 *p++ = static_cast<char>((val >> 8) & 0xFF); in WriteDataInBig()
41 *p++ = static_cast<char>(val & 0xFF); in WriteDataInBig()
44 *p++ = static_cast<char>((val >> 24) & 0xFF); in WriteDataInBig()
45 *p++ = static_cast<char>((val >> 16) & 0xFF); in WriteDataInBig()
46 *p++ = static_cast<char>((val >> 8) & 0xFF); in WriteDataInBig()
47 *p++ = static_cast<char>(val & 0xFF); in WriteDataInBig()
51 switch (sizeof(val)) { in WriteDataInBig()
53 *p++ = static_cast<char>(val & 0xFF); in WriteDataInBig()
54 *p++ = static_cast<char>((val >> 8) & 0xFF); in WriteDataInBig()
57 *p++ = static_cast<char>(val & 0xFF); in WriteDataInBig()
58 *p++ = static_cast<char>((val >> 8) & 0xFF); in WriteDataInBig()
59 *p++ = static_cast<char>((val >> 16) & 0xFF); in WriteDataInBig()
60 *p++ = static_cast<char>((val >> 24) & 0xFF); in WriteDataInBig()
69 char *WriteData(char *p, T val) { in WriteData() argument
70 const char *pt = reinterpret_cast<char *>(&val); in WriteData()
71 for (size_t i = 0; i < sizeof(val); i++) *p++ = *pt++; in WriteData()
82 uint32_t val = Offset(addr); in WriteOffset() local
83 const char *p = reinterpret_cast<char *>(&val); in WriteOffset()