about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-03-20 18:52:00 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-03-22 08:57:58 -0700
commit55603830715a1e4c99683660b141b6a4c3491d0c (patch)
tree405c8ef196c3823cab262be353e9cfa9a525d2dd /src/test/codegen/stack-alloc-string-slice.rs
parente233a43f5a0e14ceb322b955b16c8967adb2f4a8 (diff)
downloadrust-55603830715a1e4c99683660b141b6a4c3491d0c.tar.gz
rust-55603830715a1e4c99683660b141b6a4c3491d0c.zip
std: Add an I/O reader method to fill a buffer
I've found a common use case being to fill a slice (not an owned vector)
completely with bytes. It's posible for short reads to happen, and if you're
trying to get an exact number of bytes then this helper will be useful.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions