commit | 2aef472bcda52eaf68c8ff2e51cac93c071dbad5 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed May 08 21:42:32 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Wed May 08 21:42:32 2024 +0000 |
tree | 6da2edb7fec28257433f21c4bc0b564bee18aecd | |
parent | 84460a851577aaff5d8551700dfb72749a93b36d [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I83b9dc254ed6140bf90fae2670d2f52a084685cf
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