class ChunkyPNG::Chunk::End
contain any data.
The End (IEND) chunk indicates the last chunk of a PNG stream. It does not
def self.read(type, content)
-
(RuntimeError)
- Raises an exception if the content was not empty.
Returns:
-
(ChunkyPNG::Chunk::End)
- The new End chunk instance.
Parameters:
-
content
(String
) -- The content read from the chunk. Should be empty. -
type
(String
) -- The four character chunk type indicator (= "IEND").
def self.read(type, content) raise ExpectationFailed, 'The IEND chunk should be empty!' if content.bytesize > 0 self.new end
def content
-
("")
- An empty string.
def content ChunkyPNG::Datastream.empty_bytearray end
def initialize
def initialize super('IEND') end