| commit | b3868acb0f1c0bf0e11035bc3ff769300370e790 | [log] [tgz] |
|---|---|---|
| author | Chih-Yu Huang <akahuang@google.com> | Wed Nov 02 17:38:56 2022 +0900 |
| committer | Chih-Yu Huang <akahuang@google.com> | Wed Nov 02 17:43:15 2022 +0900 |
| tree | ba240793c886dc94ad5e7b8cab44e269d3c38fc5 | |
| parent | 901856115333de72a8c7fdbd166c44b5a829a3b2 [diff] |
uwb_core: polish BufferedFile::flush_buffer() method This CL changes BufferedFile::flush_buffer() method to use File::write_all() instead of write() method, then we could make sure all the buffer is written. Also, the method should call File::flush() after writing the buffer. Bug: 256721796 Test: cargo test Change-Id: I06b3eda073bf12bd2ababcffff6c9bdb6fd843d7