Tweak write_in_net_order(uint8_t*, T)