RLE (Run Length Encoding) in C# [modified]
-
My client software gets an RLE encoded TCP message from a Server. I need to decode it so I can use the data. So my question. Does C# already have an RLE decoder? Or will I need to write my own stuff? It does not look hard, but I will feel silly if Someone say there is an extension that handles the work. Thanks PS They say its PackBits style
Programmer Glenn Earl Graham Austin, TX
modified on Monday, November 2, 2009 6:17 PM
-
My client software gets an RLE encoded TCP message from a Server. I need to decode it so I can use the data. So my question. Does C# already have an RLE decoder? Or will I need to write my own stuff? It does not look hard, but I will feel silly if Someone say there is an extension that handles the work. Thanks PS They say its PackBits style
Programmer Glenn Earl Graham Austin, TX
modified on Monday, November 2, 2009 6:17 PM
-
They(Senior Developers at where I work) say its a "Traditional" form. They check to see if the previous character matches the current. If less than one or two they will attempt a sequence. If a sequence is found, they will write out the length and the sequence. If not the character and run length is attached to the buffer. PackBits they say
Programmer Glenn Earl Graham Austin, TX
modified on Monday, November 2, 2009 6:18 PM
-
They(Senior Developers at where I work) say its a "Traditional" form. They check to see if the previous character matches the current. If less than one or two they will attempt a sequence. If a sequence is found, they will write out the length and the sequence. If not the character and run length is attached to the buffer. PackBits they say
Programmer Glenn Earl Graham Austin, TX
modified on Monday, November 2, 2009 6:18 PM
-
My client software gets an RLE encoded TCP message from a Server. I need to decode it so I can use the data. So my question. Does C# already have an RLE decoder? Or will I need to write my own stuff? It does not look hard, but I will feel silly if Someone say there is an extension that handles the work. Thanks PS They say its PackBits style
Programmer Glenn Earl Graham Austin, TX
modified on Monday, November 2, 2009 6:17 PM
Try to use: http://rle.codeplex.com/[^]