3个版本
0.1.2 | 2023年6月17日 |
---|---|
0.1.1 | 2023年6月14日 |
0.1.0 | 2023年6月14日 |
13 在 #byteorder
每月162 次下载
14KB
345 行
nostd_cursor
由于在no_std环境中无法使用std::io::Cursor<T>
,我决定创建一个非常简单的实现,它默认支持byteorder,因为这就是我总是使用Cursor
的方式。
用法
没有byteorder的Cursor
一个正常的Cursor可以在nostd_cursor::cursor::Cursor
中找到
带有byteorder的Cursor
可以使用nostd_cursor::LECursor<T>
或nostd_cursor::BECursor<T>
。
贡献
到目前为止,我只实现了Cursor::read_exact()
。如果您需要任何其他在std版本中实现的功能,请随时创建一个pull request!我只为我的个人项目需要时添加更多功能。
依赖关系
~115KB