Crates.io | rs-bytebuffer |
lib.rs | rs-bytebuffer |
version | 0.1.3 |
source | src |
created_at | 2023-03-08 13:58:13.019638 |
updated_at | 2023-03-08 15:33:27.599214 |
description | this is a bytebuffer tools |
homepage | https://github.com/yealou/rs-bytebuffer |
repository | https://github.com/yealou/rs-bytebuffer |
max_upload_size | |
id | 804655 |
size | 23,319 |
byte 操作工具类
let array: [u8; 4] = [0x01, 0x02, 0x01, 0x02];
let mut read_byte_buf = ByteReader::new_from( & array);
read_byte_buf.read_i8();
read_byte_buf.read_u8();
read_byte_buf.read_u16_le();
read_byte_buf.mark_read_index().read_i16_le();
read_byte_buf.reset_read_index();
read_byte_buf.read_i16_le();
read_byte_buf.read_i16_le();
TIS is under the Apache2 License. See the LICENSE file for details.
您在使用过程中有任何不满或者批评都请说出, 您提出的宝贵意见是对我们最大的支持和鼓励, 我要提建议