commit | ce84de518a0eeb7eefe8901d32a6287d1a141a4f | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue May 21 23:12:25 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue May 21 23:12:25 2024 +0000 |
tree | 43a77fe401f71474635250f8ab1a52c0d43c6485 | |
parent | 4f96f6bc5d93dc07108046588a7e12b22d692983 [diff] | |
parent | f628325a5e5ec05d61021ac37c7cb8f51bb91a0f [diff] |
Snap for 11869550 from f628325a5e5ec05d61021ac37c7cb8f51bb91a0f to 24Q3-release Change-Id: I173c1ad61bdd56ec7b5046f4bafed0e9dd61a0b9
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