Lines Matching refs:value
24 static inline int8_t HostToNet(int8_t value)
26 return value;
28 static inline int16_t HostToNet(int16_t value)
30 return htole16(value);
33 static inline int16_t NetToHost(int16_t value)
35 return le16toh(value);
38 static inline int32_t HostToNet(int32_t value)
40 return htole32(value);
43 static inline int8_t NetToHost(int8_t value)
45 return le32toh(value);
48 static inline int32_t NetToHost(int32_t value)
50 return le32toh(value);
53 static inline int64_t HostToNet(int64_t value)
55 return htole64(value);
58 static inline int64_t NetToHost(int64_t value)
60 return le64toh(value);
63 static inline uint8_t HostToNet(uint8_t value)
65 return value;
67 static inline uint16_t HostToNet(uint16_t value)
69 return htole16(value);
72 static inline uint16_t NetToHost(uint16_t value)
74 return le16toh(value);
77 static inline uint32_t HostToNet(uint32_t value)
79 return htole32(value);
82 static inline uint8_t NetToHost(uint8_t value)
84 return le32toh(value);
87 static inline uint32_t NetToHost(uint32_t value)
89 return le32toh(value);
92 static inline uint64_t HostToNet(uint64_t value)
94 return htole64(value);
97 static inline uint64_t NetToHost(uint64_t value)
99 return le64toh(value);
102 static inline bool HostToNet(bool value)
104 return value;
107 static inline bool NetToHost(bool value)
109 return value;
112 inline double HostToNet(double value)
116 const uint8_t *fromByte = reinterpret_cast<const uint8_t *>(&value);
124 inline double NetToHost(double value)
126 return HostToNet(value);