class

StumpyPNG::Chunk

Inherits Reference < Object

Constructors

new(type : String, data : Slice(UInt8), crc : UInt32 | Nil = nil)
Source

Class methods

parse(slice : Bytes)

Parse chunk data without size.

Source

Instance methods

crc=(crc : UInt32)
Source
data
Source
data=(data : Bytes)
Source
raw

Returns chunk data with size as a Bytes.

Source
size
Source
type
Source
type=(type : String)
Source
write(io : IO)

Write chunk data to io with size.

Source