You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm playing with bluez whose DBus API represents sent/received binary data as byte arrays. A native solution is that pack the data with string.pack() and then pass the string (actually binary data) to ldbus. So I'm willing to take a look with this issue.
The idea to add an option to append_basic() doesn't look good to me:
Currently our bindings match well with the DBus C API documentation, one could figure out how the bindings work easily with it. Such a parameter will break the simplicity.
The name, append_basic(), doesn't match the new functionality. Anyway, byte array isn't a basic type at all.
I suggest to bind C API dbus_message_iter_append_fixed_array() and dbus_message_iter_get_fixed_array(). We could treat bytearray specially in the binding and convert it to/from Lua strings representing binary data.
DBus strings must be valid utf-8
Provide a way to deal with binary data.
The text was updated successfully, but these errors were encountered: