commit | cb80db355b6eb1aa7f22c14dfedd07204c25299d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri May 12 01:03:58 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri May 12 01:03:58 2023 +0000 |
tree | 31ad1d3e82d4db3b019aa81fa63e3c71786ca8e7 | |
parent | f255acfefcd6457b1f1e7145fa506feb41487270 [diff] | |
parent | a183e062f7c871500c3231e487948be102beafb6 [diff] |
Snap for 10113759 from 58a3496d6999119f298503f38da5ea48dd0a3874 to udc-release am: a183e062f7 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/ciborium-io/+/23186044 Change-Id: Ic2c2c4559bdbab050329857055009798b4264406 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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