mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-03 20:51:36 +00:00
general: Add array_byteswap() to helper
Make unconditional array byte swapping publicly available Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
This commit is contained in:
@@ -165,6 +165,7 @@ static inline void htoipmi32(uint32_t h, uint8_t *ipmi)
|
||||
ipmi[3] = (h >> 24) & 0xFF; /* MSB */
|
||||
}
|
||||
|
||||
uint8_t *array_byteswap(uint8_t *buffer, size_t length);
|
||||
uint8_t *array_ntoh(uint8_t *buffer, size_t length);
|
||||
uint8_t *array_letoh(uint8_t *buffer, size_t length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user