¶ 整型转字节数组
小端序:i16::to_le_bytes
大端序:i16::to_be_bytes
¶ 字节数组转整型
小端序:i16::from_le_bytes
大端序:i16::from_be_bytes
¶ 例子
fn main() { |
小端序:i16::to_le_bytes
大端序:i16::to_be_bytes
小端序:i16::from_le_bytes
大端序:i16::from_be_bytes
fn main() { |
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo