Marshal GBytes from and to a Java byte array #199

Merged
jwharm merged 1 commit from gbytes into main 2025-03-01 17:30:07 +01:00
jwharm commented 2025-03-01 17:26:26 +01:00 (Migrated from github.com)

This PR will replace all GBytes in the generated Java API with byte[]. A GBytes is automatically allocated and destroyed before and after method calls.

There is one unsupported case in Gio: TlsCertificate.getDnsNames() which returns a GPtrArray with GBytes elements. This should result in a nested array in Java (byte[][]) but this is not yet implemented. Therefore, this method is currently not available in Java.

Fixes #130

This PR will replace all `GBytes` in the generated Java API with `byte[]`. A `GBytes` is automatically allocated and destroyed before and after method calls. There is one unsupported case in Gio: `TlsCertificate.getDnsNames()` which returns a GPtrArray with GBytes elements. This should result in a nested array in Java (`byte[][]`) but this is not yet implemented. Therefore, this method is currently not available in Java. Fixes #130
Sign in to join this conversation.
No description provided.