Home | History | Annotate | Download | only in include

Lines Matching refs:bytes

126 htol16_ua_store(uint16 val, uint8 *bytes)
128 bytes[0] = val & 0xff;
129 bytes[1] = val >> 8;
134 htol32_ua_store(uint32 val, uint8 *bytes)
136 bytes[0] = val & 0xff;
137 bytes[1] = (val >> 8) & 0xff;
138 bytes[2] = (val >> 16) & 0xff;
139 bytes[3] = val >> 24;
144 hton16_ua_store(uint16 val, uint8 *bytes)
146 bytes[0] = val >> 8;
147 bytes[1] = val & 0xff;
152 hton32_ua_store(uint32 val, uint8 *bytes)
154 bytes[0] = val >> 24;
155 bytes[1] = (val >> 16) & 0xff;
156 bytes[2] = (val >> 8) & 0xff;
157 bytes[3] = val & 0xff;
167 ltoh16_ua(const void *bytes)
169 return _LTOH16_UA((const uint8 *)bytes);
174 ltoh32_ua(const void *bytes)
176 return _LTOH32_UA((const uint8 *)bytes);
181 ntoh16_ua(const void *bytes)
183 return _NTOH16_UA((const uint8 *)bytes);
188 ntoh32_ua(const void *bytes)
190 return _NTOH32_UA((const uint8 *)bytes);