PNGChunkModifie

package
v0.0.0-...-ac2cb9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Constructor

func Constructor(file *os.File, newChunk, addBeforeChunk []byte) []byte

func NewPLTE

func NewPLTE(data string) []byte

func NewZTXt

func NewZTXt(keyword, data string) []byte

func NewtEXt

func NewtEXt(keyword, data string) []byte

func ReadChunkData

func ReadChunkData(reader io.Reader) ([]byte, error)

func ReadData

func ReadData(file *os.File, matchChunk []byte)

func Validate

func Validate(file *os.File)

Types

type Chunk

type Chunk struct {
	Length uint32
	Type   [4]byte
	Data   []byte
	CRC    uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL