class ChunkyPNG::Chunk::End

@see www.w3.org/TR/PNG/#11IEND<br><br>not contain any data.
The End (IEND) chunk indicates the last chunk of a PNG stream. It does

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

def content

Returns:
  • ("") - An empty string.
def content
  "".b
end

def initialize

def initialize
  super("IEND")
end