Class LzwString
- Namespace
- SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
- Assembly
- SixLabors.ImageSharp.dll
Represents a lzw string with a code word and a code length.
public class LzwString
- Inheritance
-
LzwString
- Inherited Members
Constructors
LzwString(byte)
Initializes a new instance of the LzwString class.
public LzwString(byte code)
Parameters
code
byteThe code word.
Properties
FirstChar
Gets the first character of the codeword.
public byte FirstChar { get; }
Property Value
Length
Gets the code length;
public int Length { get; }
Property Value
Methods
Concatenate(byte)
Concatenates two code words.
public LzwString Concatenate(byte other)
Parameters
other
byteThe code word to concatenate.
Returns
- LzwString
A concatenated lzw string.
WriteTo(Span<byte>, int)
Writes decoded pixel to buffer at a given position.
public int WriteTo(Span<byte> buffer, int offset)
Parameters
Returns
- int
The number of bytes written.