tag | 060e28d8376d963a72888d7cf18b293b567aa148 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Dec 06 22:03:50 2023 -0800 |
object | 747019684f9f0960f11be4d2c10c5b1585931f76 |
aml_rkp_341114000 (10837468,com.google.android.rkpd)
commit | 747019684f9f0960f11be4d2c10c5b1585931f76 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:22:43 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:22:43 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | b5d66e707ac7db34fb907e63051b2e95fbda3e67 [diff] | |
parent | 91207e55f6d8999de4813b220981a2631bf08a6e [diff] |
Snap for 10453563 from 91207e55f6d8999de4813b220981a2631bf08a6e to mainline-rkpd-release Change-Id: I33bde5f6a2efa3aff78fd640c7bdf18c0a919001
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