nostd-cursor

Crates.ionostd-cursor
lib.rsnostd-cursor
version0.1.2
sourcesrc
created_at2023-06-14 09:51:44.587995
updated_at2023-06-17 20:39:25.114688
descriptionLibrary that implements std::io::cursor in a nostd-environment.
homepage
repository
max_upload_size
id889967
size14,943
David Träff (davidtraff)

documentation

README

nostd_cursor

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.

Usage

Cursor WITHOUT byteorder

A normal cursor can be found in nostd_cursor::cursor::Cursor

Cursor WITH byteorder

Either use nostd_cursor::LECursor<T> or nostd_cursor::BECursor<T>.

Contribute

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.

Commit count: 0

cargo fmt