class StumpyPNG::Chunk

Defined in:

stumpy_png/chunk.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(type, data, crc : UInt32? = nil) #

[View source]

Class Method Detail

def self.parse(slice : Bytes) #

Parse chunk data without size.


[View source]

Instance Method Detail

def crc : UInt32 #

[View source]
def crc=(crc : UInt32) #

[View source]
def data : Bytes #

[View source]
def data=(data : Bytes) #

[View source]
def raw : Bytes #

Returns chunk data with size as a Bytes.


[View source]
def size #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def write(io : IO) #

Write chunk data to io with size.


[View source]