tag | 36bcfa07aa79617b8f2cb51f4fb1ab7e6f7e1228 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Jan 04 16:58:11 2024 -0800 |
object | 799f1a159a2e556c4c3af253701db19bbbc16fb4 |
frc_340819030 (10622519,com.google.android.go.media,com.google.android.go.media.swcodec,com.google.android.media,com.google.android.media.swcodec)
commit | 799f1a159a2e556c4c3af253701db19bbbc16fb4 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon May 15 16:36:59 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon May 15 16:36:59 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | 0e6b461ca5eaf2365b6855b08ec197ad1ae1b87e [diff] | |
parent | a183e062f7c871500c3231e487948be102beafb6 [diff] |
Snap for 10118161 from a183e062f7c871500c3231e487948be102beafb6 to aml-frc-release Change-Id: Idf7130efad86f0fb9ec3f525cccb7e8c26536ede
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