Do not always zero initialize for rust resize vec

This commit is contained in:
LoveSy
2023-12-09 01:17:19 +08:00
committed by topjohnwu
parent 2ac464b186
commit 90dcc1cd30
3 changed files with 11 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ private:
rust::Vec<uint8_t> &_data;
size_t _pos = 0;
void ensure_size(size_t sz);
void ensure_size(size_t sz, bool zero = false);
};
class file_channel : public channel {