struct

CrImage::WEBP::FourCC

Inherits Struct / Value / Object

FourCC is a four character code used in RIFF containers.

FourCC (Four Character Code) identifies chunk types in RIFF files. Examples: "RIFF", "WEBP", "VP8L", "VP8X", "ALPH"

Constructors

new(bytes : StaticArray(UInt8, 4))
Source
new(str : String)

Creates FourCC from string (takes first 4 characters).

Source

Instance methods

==(other : FourCC)
Source
bytes
Source
bytes=(bytes : StaticArray(UInt8, 4))
Source
to_s(io : IO)

Same as #inspect(io).

Source