From fca3f20c5e7bdea308ae70a5354ffc8eb5c0c544 Mon Sep 17 00:00:00 2001 From: pedrobsaila Date: Sun, 25 May 2025 20:32:52 +0200 Subject: [PATCH 1/2] PipeWriter.UnflushedBytes long property wraps to negative numbers after int.MaxValue --- xml/System.IO.Pipelines/PipeWriter.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/xml/System.IO.Pipelines/PipeWriter.xml b/xml/System.IO.Pipelines/PipeWriter.xml index 3a1cb195fa1..2ca4ddf72f2 100644 --- a/xml/System.IO.Pipelines/PipeWriter.xml +++ b/xml/System.IO.Pipelines/PipeWriter.xml @@ -75,6 +75,7 @@ The number of bytes written to the or . Notifies the that bytes were written to the output or . You must call or again and use the returned buffer to continue writing more data after calling ; you cannot write to a previously acquired buffer. To be added. + The buffer size overflown its `long.MaxValue` max size. From e360c6a2ba2a21eabb902ffe09b758a9c669fefb Mon Sep 17 00:00:00 2001 From: pedrobsaila Date: Sun, 25 May 2025 20:38:31 +0200 Subject: [PATCH 2/2] fix typo --- xml/System.IO.Pipelines/PipeWriter.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.IO.Pipelines/PipeWriter.xml b/xml/System.IO.Pipelines/PipeWriter.xml index 2ca4ddf72f2..5639023a547 100644 --- a/xml/System.IO.Pipelines/PipeWriter.xml +++ b/xml/System.IO.Pipelines/PipeWriter.xml @@ -75,7 +75,7 @@ The number of bytes written to the or . Notifies the that bytes were written to the output or . You must call or again and use the returned buffer to continue writing more data after calling ; you cannot write to a previously acquired buffer. To be added. - The buffer size overflown its `long.MaxValue` max size. + The unflushed buffer overflowed its `long.MaxValue` max size.