tag | bc4d22e4cb8cbb5205d903c2964437f3b8f28754 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Feb 03 17:02:16 2023 -0800 |
object | 10e6c91f1aed576e41a33f55f268242ab22dd761 |
Platform Tools Release 34.0.0 (9560563)
commit | 10e6c91f1aed576e41a33f55f268242ab22dd761 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 10:59:37 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 01 10:59:37 2023 +0000 |
tree | b727f210535f96caa1dcc76895ad52fc02408c41 | |
parent | 611a3f5cab8a58d5c93b2f00c910802bd93bd9d3 [diff] | |
parent | 4f0b0a101d3076145802b181fcd60c3a015464e1 [diff] |
Snap for 9550355 from 4f0b0a101d3076145802b181fcd60c3a015464e1 to sdk-release Change-Id: I13f3c98565bf39420d264047f95a01dc1e2609cc
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