function iendChunkRefiner
iendChunkRefiner(): Refiner<PngChunkUnknown, IendChunk, []>

Creates a refiner for IEND (Image End) chunks.

This refiner transforms raw IEND chunk bytes into a structured IendChunk object. Since IEND has no data, this simply converts the type field.

Examples

Example 1

import { assert } from "@std/assert";
import { iendChunkRefiner } from "@binstruct/png";

const refiner = iendChunkRefiner();
assert(typeof refiner.refine === "function");
assert(typeof refiner.unrefine === "function");

Return Type

A refiner that converts between raw chunks and IendChunk.

Usage

import { iendChunkRefiner } from ".";