Skip to content

Commit 0ddb2d2

Browse files
iText-CILodrKumquat
authored andcommitted
Add comment to MemoryLimitsAwareOutputStream#write()
DEVSIX-3766 Autoported commit. Original commit hash: [1d70930ef] Manual files: kernel/src/main/java/com/itextpdf/kernel/pdf/MemoryLimitsAwareOutputStream.java
1 parent 48c7527 commit 0ddb2d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

itext/itext.kernel/itext/kernel/pdf/MemoryLimitsAwareOutputStream.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public virtual iText.Kernel.Pdf.MemoryLimitsAwareOutputStream SetMaxStreamSize(i
100100

101101
/// <summary><inheritDoc/></summary>
102102
public override void Write(byte[] b, int off, int len) {
103+
// NOTE: in case this method is updated, the ManualCompressionTest should be run!
103104
if ((off < 0) || (off > b.Length) || (len < 0) || ((off + len) - b.Length > 0)) {
104105
throw new IndexOutOfRangeException();
105106
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
77e4ac6578770314710af27353d7da833b836f4d
1+
1d70930ef29dd06c4342d3db507fe7b846fb3661

0 commit comments

Comments
 (0)