Jump to content

Run-length encoding: Difference between revisions

m
m (→‎{{header|Smalltalk}}: a note about a "feature" (without example))
m (→‎{{header|C}}: a note)
Line 113:
}
}</lang>
 
'''Final note''': since the repeat counter value 0 has no meaning, it could be used as it would be 256, so extending by one the maximum number of repetitions representable with a single byte; or instead it could be used as a special marker to encode in a more efficient way (long) sequences of ''isolated characters'', e.g. "ABCDE" would be encoded as "1A1B1C1D1E"; it could be instead encoded as "05ABCDE".
 
=={{header|Haskell}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.