lib/chunky_png/chunk.rb
# Returns the content for this chunk when it gets written to a file, by
# packing the image information variables into the correct format.
# @return [String] The 13-byte content for the header chunk.
Returns the content for this chunk when it gets written to a file, by
packing the image information variables into the correct format.
Returns the content for this chunk when it gets written to a file by packing the image information variables into the correct format .
def content
        [
          width,
          height,
          depth,
          color,
          compression,
          filtering,
          interlace,
        ].pack("NNC5")
      end
def content [ width , height , depth , color , compression , filtering , interlace , ] . pack ( "NNC5" ) end
Returns the content for this chunk when it gets written to a file, by
packing the image information variables into the correct format.
Returns the content for this chunk when it gets written to a file by packing the image information variables into the correct format .
The 13-byte content for the header chunk.
The 13 - byte content for the header chunk .
String