using System;
using System.IO;
using Koyashiro.PngChunkUtil;
byte[] png = File.ReadAllBytes("example.png");
Chunk[] chunks = PngReader.ReadBytes(png);
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
List<Chunk> chunks = PngReader.ReadBytes(File.ReadAllBytes("example.png")).ToList();
byte[] png = PngWriter.WriteBytes(CollectionsMarshal.AsSpan(chunks));