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