-
-
Notifications
You must be signed in to change notification settings - Fork 62
Bind API to convert from/to bytes to/from Variant #588
Conversation
Maybe also add the |
Yeah, i intend to. I just wanted to get early feedback for learning purposes. :) |
Done. I've not tested that one yet. I'll report it here once done. |
Looks good to me as long as that can never return NULL :) |
Actually it can. :(
This is from docs of |
|
All done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
From https://github.com/GNOME/glib/blob/mainline/glib/gvariant-core.c#L938 |
@zeenix Sorry, I was wrong, |
When? |
If bytes_data==NULL, then |
That's a |
Bind Variant::new_from_bytes & Variant::get_data_as_bytes().
I removed the |
Nice
On all nightly builds 🙈 |
I can confirm, it's the |
Regression caused by rust-lang/rust@fc23a81, hm! |
Daily breaking changes time is back! |
Don't be so dramatic :) It's just a bug, and might even be one on our side that just happened to not trigger for a long long time. |
My bad... I have memories from the past where every day was a whole new language haha. |
Bind Variant::new_from_bytes & Variant::get_data_as_bytes().
Related: #113.