[ntcore] Fix write_impl (#5847)

The previous fix didn't handle all cases correctly. Instead, add a new
function to raw_ostream (SetNumBytesInBuffer) to allow always using the
full buffer size, and revamp write_impl to more cleanly handle all
cases.
This commit is contained in:
Peter Johnson
2023-10-30 08:23:33 -07:00
committed by GitHub
parent 1713386869
commit 07e13d60a2
4 changed files with 63 additions and 26 deletions

View File

@@ -210,6 +210,7 @@ def main():
"0030-Remove-DenseMap-GTest-printer-test.patch",
"0031-Replace-deprecated-std-aligned_storage_t.patch",
"0032-Fix-compilation-of-MathExtras.h-on-Windows-with-sdl.patch",
"0033-raw_ostream-Add-SetNumBytesInBuffer.patch",
]:
git_am(
os.path.join(wpilib_root, "upstream_utils/llvm_patches", f),