lib/chunky_png/chunk.rb
# Assembles the content to write to the stream for this chunk.
# @return [String] The binary content that should be written to the datastream.
Assembles the content to write to the stream for this chunk.
Assembles the content to write to the stream for this chunk .
def content
        text_field = text.encode("utf-8")
        text_field = compressed == ChunkyPNG::COMPRESSED_CONTENT ? Zlib::Deflate.deflate(text_field) : text_field
        [keyword, compressed, compression, language_tag, translated_keyword.encode("utf-8"), text_field].pack("Z*CCZ*Z*a*")
      end
def content text_field = text . encode ( "utf-8" ) text_field = compressed == ChunkyPNG :: COMPRESSED_CONTENT ? Zlib :: Deflate . deflate ( text_field ) : text_field [ keyword , compressed , compression , language_tag , translated_keyword . encode ( "utf-8" ) , text_field ] . pack ( "Z*CCZ*Z*a*" ) end
Assembles the content to write to the stream for this chunk.
Assembles the content to write to the stream for this chunk .
The binary content that should be written to the datastream.
The binary content that should be written to the datastream .
String