about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-18 22:25:32 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-19 14:09:16 +1100
commitc9b4538babbc85b971b19bbeff16bd12a4f4db54 (patch)
tree8efb0c748d1330d1e5bfcb5c9b0c1a14ff92655b /src/test/codegen/stack-alloc-string-slice.rs
parent4f841ee1509fafdf688a3898e01560ae29ee7836 (diff)
downloadrust-c9b4538babbc85b971b19bbeff16bd12a4f4db54.tar.gz
rust-c9b4538babbc85b971b19bbeff16bd12a4f4db54.zip
str: add a function for truncating a vector of u16 at NUL.
Many of the functions interacting with Windows APIs allocate a vector of
0's and do not retrieve a length directly from the API call, and so need
to be sure to remove the unmodified junk at the end of the vector.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions