tag | 55d7c7d903b4229f29d5be509cf03c359a51d882 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Apr 24 19:33:20 2024 -0700 |
object | 0c5b0e405c5d0b31eadb79e3bdb83f19ed7f7f0a |
aml_med_341619000 (11503912,com.google.android.go.media,com.google.android.media)
commit | 0c5b0e405c5d0b31eadb79e3bdb83f19ed7f7f0a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:54:11 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:54:11 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | 58b10f2bcaee58bab920b55bd3393078c4caeb3f [diff] | |
parent | 91207e55f6d8999de4813b220981a2631bf08a6e [diff] |
Snap for 10453563 from 91207e55f6d8999de4813b220981a2631bf08a6e to mainline-media-release Change-Id: Icd34466706595cb7ee3d30e05a7126c41bb9797e
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