Documentation ¶
Index ¶
Constants ¶
View Source
const ( Major = 0 Minor = 0 Patch = 1 Version = "0.0.1" )
WARNING: Auto generated version file. Do not edit this file by hand. WARNING: go get github.com/sabhiram/gover to manage this file. Version: 0.0.1
Variables ¶
View Source
var (
ErrBadCRC = errors.New("bad crc for chunk")
)
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct { // ---------------------------------------------------------------- // | Length | Chunk Type | ... Data ... | CRC | // ---------------------------------------------------------------- // 4 bytes 4 bytes `Length` bytes 4 bytes Length uint32 ChunkType string Data []byte Crc uint32 }
Chunk describes a PNG chunk.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements a PNG chunk reader.
type ReaderOptions ¶
type ReaderOptions struct {
IncludedChunkTypes []string
}
ReaderOptions encapsulates various PNG chunk reader options.
Click to show internal directories.
Click to hide internal directories.