commit | d4b9a9584307942800fd56985d011eaf84dbd133 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Wed Feb 01 11:36:03 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Feb 01 11:36:03 2023 +0000 |
tree | b727f210535f96caa1dcc76895ad52fc02408c41 | |
parent | 2ef20ae8957eeedfa7509a03376397f20ea34939 [diff] | |
parent | d7e21bacf91fde9320fbce7e50bd930680b9ec79 [diff] |
Update TEST_MAPPING am: 4f0b0a101d am: d7e21bacf9 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/2411540 Change-Id: If17ef23078fd32b9b4b7d98837a7fbb9e9e716b4 Signed-off-by: Automerger Merge Worker <[email protected]>
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