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
| Improve this Doc 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
| Improve this Doc 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 |
---|---|
Int32 |
Methods
| Improve this Doc 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>, Int32)
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. |
Int32 | offset | The position to write to. |
Returns
Type | Description |
---|---|
Int32 | The number of bytes written. |