Skip to content
  • Niels De Graef's avatar
    Remove GimpUint8Array in favor of GBytes · 89c359ce
    Niels De Graef authored
    GLib has a specific type for byte arrays: `GBytes` (and it's underlying
    GType `G_TYPE_BYTES`).
    
    By using this type, we can avoid having a `GimpUint8Array` which is a
    bit cumbersome to use for both the C API, as well as bindings. By using
    `GBytes`, we allow other languages to pass on byte arrays as they are
    used to, while the bindings will make sure to do the right thing.
    
    In the end, it makes the API a little bit simpler for everyone, and
    reduces confusion for people who are used to working with byte arrays
    in other C/GLib based code (and not having 2 different types to denote
    the same thing).
    
    Related: #5919
    89c359ce