Skip to content

fs: simplify FSReqBase slightly

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/fs-req-wrap into master

Replace the data_ member of FSReqBase by a boolean flag, because the pointer that data() returns is already available through the buffer_ member, and set the default size for not requiring an extra allocation to a more reasonable value, as the input is usually something like a file path.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading