Skip to content

Commit e2200a1

Browse files
author
Artem Golovko
committed
RLE: extend max sequence size; it can be from 2 to 257(1 byte size)
1 parent e949c15 commit e2200a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/rle/RLECoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private class RLECoderWriter(
1717
private val output: OutputStream
1818
) : CoderWriter {
1919

20-
private val MAX_SEQUENCE_SIZE = 255
20+
private val MAX_SEQUENCE_SIZE = 255 + 2
2121

2222
private var currentSequenceSize = 0
2323

0 commit comments

Comments
 (0)