class ChunkyPNG::Chunk::Base
def write_with_crc(io, content)
-
content
(String
) -- The content for this chunk. -
io
(IO
) -- The IO stream to write to.
def write_with_crc(io, content) io << [content.length].pack("N") << type << content io << [Zlib.crc32(content, Zlib.crc32(type))].pack("N") end