Skip to main content

bytes_to_i32_be

Function bytes_to_i32_be 

Source
pub fn bytes_to_i32_be(bytes: [u8; 4]) -> i32
Expand description

字节序转换工具函数

协议使用 Motorola (MSB) 高位在前(大端字节序), 这些函数用于在协议层进行字节序转换。

大端字节序转 i32