ParcelablePlease icon indicating copy to clipboard operation
ParcelablePlease copied to clipboard

Support for nullables

Open danielgindi opened this issue 9 years ago • 1 comments

If it's a Bool (vs. bool), then first a extra byte of != null should be emitted, and then if it's not null, emit the byte representing the value. Same goes for a String - emit a byte, and if not null emit the string. And for any other type...

Thanks :-)

danielgindi avatar Jul 29 '16 05:07 danielgindi

I might be wrong, but null on objects is already handled by the framework. So null for String should work, doesn't it?

Regarding wrappers like Bool , Double, Integer and so on, yes, null support is missing for them.

sockeqwe avatar Jul 29 '16 09:07 sockeqwe