Crates.io | nostd-cursor |
lib.rs | nostd-cursor |
version | 0.1.2 |
source | src |
created_at | 2023-06-14 09:51:44.587995 |
updated_at | 2023-06-17 20:39:25.114688 |
description | Library that implements std::io::cursor in a nostd-environment. |
homepage | |
repository | |
max_upload_size | |
id | 889967 |
size | 14,943 |
Since it's impossible to use std::io::Cursor<T>
in a no_std environment I decided to create a very very simple implementation that supports byteorder out of the box since that's how I always use Cursor
.
A normal cursor can be found in nostd_cursor::cursor::Cursor
Either use nostd_cursor::LECursor<T>
or nostd_cursor::BECursor<T>
.
At this point I've only trivially implemented Cursor::read_exact()
. If you need anything else that is implemented in the std-version feel free to create a pull request! I'm only planning to add more features when I need them for my personal projects.