class PNG::Chunk
- PNG::Chunk
- Reference
- Object
Defined in:
png/chunk.crConstructors
Class Method Summary
- .read(io : IO, &)
-
.write(chunk_type : String, io : IO, data : Bytes)
Write a chunk to the PNG stream Each chunk consists of - Length of data (UInt32) - Chunk type (String 4 chars) - Data (Bytes) - CRC32 chucksum (4 bytes)
-
.write(chunk_type : String, io : IO, size : UInt32, &block : IO -> Nil)
Write a chunk to the PNG stream Each chunk consists of - Length of data (UInt32) - Chunk type (String 4 chars) - Data (Bytes) - CRC32 chucksum (4 bytes)
-
.write(chunk_type : String, io : IO, &block : IO -> Nil)
Write a chunk to the PNG stream Each chunk consists of - Length of data (UInt32) - Chunk type (String 4 chars) - Data (Bytes) - CRC32 chucksum (4 bytes)
Instance Method Summary
Constructor Detail
Class Method Detail
def self.write(chunk_type : String, io : IO, data : Bytes)
#
Write a chunk to the PNG stream Each chunk consists of
- Length of data (UInt32)
- Chunk type (String 4 chars)
- Data (Bytes)
- CRC32 chucksum (4 bytes)
def self.write(chunk_type : String, io : IO, size : UInt32, &block : IO -> Nil)
#
Write a chunk to the PNG stream Each chunk consists of
- Length of data (UInt32)
- Chunk type (String 4 chars)
- Data (Bytes)
- CRC32 chucksum (4 bytes)
def self.write(chunk_type : String, io : IO, &block : IO -> Nil)
#
Write a chunk to the PNG stream Each chunk consists of
- Length of data (UInt32)
- Chunk type (String 4 chars)
- Data (Bytes)
- CRC32 chucksum (4 bytes)