tag | 485684816bb4629dc465ecc18a3e39d13fc6a4b0 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Jul 27 11:36:26 2023 -0700 |
object | c2a522a89c168a6c6344eedc89ea6290b2b3f3a5 |
Platform Tools Release 34.0.4 (10411341)
commit | c2a522a89c168a6c6344eedc89ea6290b2b3f3a5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 28 13:31:09 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 28 13:31:09 2023 +0000 |
tree | 9ae1a3bccadc9a2481046c76c1a7e33d58b390da | |
parent | d0dba4789a8ac70fc1a0cfa28353189a4bf91ca7 [diff] | |
parent | 670e2b1bc5ad36bea932126b555883e801ef6797 [diff] |
Snap for 10399941 from 670e2b1bc5ad36bea932126b555883e801ef6797 to sdk-release Change-Id: I313bdfc6e96cceb7830fc3e41defb90f0c5e5742
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