byteArray: Fix crash with 0-length GLib.Bytes
ByteArray.fromGBytes() would crash if the GLib.Bytes had zero length. Anticipate this case and just create an empty Uint8Array.
parent
1639d90f
Please register or sign in to comment
ByteArray.fromGBytes() would crash if the GLib.Bytes had zero length. Anticipate this case and just create an empty Uint8Array.