PDFsharp-net6

ChunkHeader

Namespace: PdfSharp.BigGustave

The header for a data chunk in a PNG file.

public struct ChunkHeader

Inheritance ObjectValueTypeChunkHeader

Properties

Position

The position/start of the chunk header within the stream.

public long Position { get; }

Property Value

Int64

Length

The length of the chunk in bytes.

public int Length { get; }

Property Value

Int32

Name

The name of the chunk, uppercase first letter means the chunk is critical (vs. ancillary).

public string Name { get; }

Property Value

String

IsCritical

Whether the chunk is critical (must be read by all readers) or ancillary (may be ignored).

public bool IsCritical { get; }

Property Value

Boolean

IsPublic

A public chunk is one that is defined in the International Standard or is registered in the list of public chunk types maintained by the Registration Authority. Applications can also define private (unregistered) chunk types for their own purposes.

public bool IsPublic { get; }

Property Value

Boolean

IsSafeToCopy

Whether the (if unrecognized) chunk is safe to copy.

public bool IsSafeToCopy { get; }

Property Value

Boolean

Constructors

ChunkHeader(Int64, Int32, String)

Create a new ChunkHeader.

ChunkHeader(long position, int length, string name)

Parameters

position Int64

length Int32

name String

Methods

ToString()

string ToString()

Returns

String