commit | bf55e719623a5a58e5ab32a4a3fb57a32f40e4e0 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Mon May 20 16:53:41 2024 +0000 |
committer | James Farrell <[email protected]> | Mon May 20 16:53:41 2024 +0000 |
tree | 43a77fe401f71474635250f8ab1a52c0d43c6485 | |
parent | 2aef472bcda52eaf68c8ff2e51cac93c071dbad5 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: Iad17781bf59f17691ea07e3eb764aa9c61c73926
Simple, Low-level I/O traits
This crate provides two simple traits: Read
and Write
. These traits mimic their counterparts in std::io
, but are trimmed for simplicity and can be used in no_std
and no_alloc
environments. Since this crate contains only traits, inline functions and unit structs, it should be a zero-cost abstraction.
If the std
feature is enabled, we provide blanket implementations for all std::io
types. If the alloc
feature is enabled, we provide implementations for Vec<u8>
. In all cases, you get implementations for byte slices. You can, of course, implement the traits for your own types.
License: Apache-2.0