diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-18 22:25:32 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-19 14:09:16 +1100 |
| commit | c9b4538babbc85b971b19bbeff16bd12a4f4db54 (patch) | |
| tree | 8efb0c748d1330d1e5bfcb5c9b0c1a14ff92655b /src/test/codegen | |
| parent | 4f841ee1509fafdf688a3898e01560ae29ee7836 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
