tag | 5e3aab4c57b77894ec1facdc880e49da67d6b86e | |
---|---|---|
tagger | Xin Li <delphij@google.com> | Wed Apr 24 20:16:28 2024 -0700 |
object | 80356c3d18ace994fefa8acfb575254111157095 |
aml_odp_341610000 (11382236,com.google.android.go.ondevicepersonalization,com.google.android.ondevicepersonalization)
commit | 80356c3d18ace994fefa8acfb575254111157095 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 07:12:24 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 07:12:24 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | 102b5db370128d4277ec468a76983927d4fd4d3f [diff] | |
parent | 91207e55f6d8999de4813b220981a2631bf08a6e [diff] |
Snap for 10453938 from 91207e55f6d8999de4813b220981a2631bf08a6e to mainline-odp-release Change-Id: I9bf45d064b5f74bd131f33bb0ef1d8ceeecd59e7
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