class ChunkyPNG::Chunk::End

def self.read(type, content)

Raises:
  • (ChunkyPNG::ExpectationFailed) - 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
  • type (String) -- The four character chunk type indicator (=
def self.read(type, content)
  raise ExpectationFailed, "The IEND chunk should be empty!" if content.bytesize > 0
  new
end