diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-01 00:58:27 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-01 00:58:27 +1100 |
| commit | be6ae6eb373551936fffe83ebe085e4819ab00c0 (patch) | |
| tree | 263b5667c7a3f2252c9e09d716855301a84ebddb /src/rustllvm/RustWrapper.cpp | |
| parent | 80991bb578329ca921fdc910d9b6b064e8f521d2 (diff) | |
| download | rust-be6ae6eb373551936fffe83ebe085e4819ab00c0.tar.gz rust-be6ae6eb373551936fffe83ebe085e4819ab00c0.zip | |
std::io::mem: add a with_capacity constructor to MemWriter.
This allows one to reduce the number of reallocs of the internal buffer if one has an approximate idea of the size of the final output.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
