Table of Contents

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 byte

The code word.

Properties

FirstChar

Gets the first character of the codeword.

public byte FirstChar { get; }

Property Value

byte

Length

Gets the code length;

public int Length { get; }

Property Value

int

Methods

Concatenate(byte)

Concatenates two code words.

public LzwString Concatenate(byte other)

Parameters

other byte

The 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

buffer Span<byte>

The buffer to write to.

offset int

The position to write to.

Returns

int

The number of bytes written.