Closed litclimbing closed 2 years ago
Could you resolve the merge conflicts? Thanks!
I still need to think about this, should be able to get back to you tomorrow
Yeah take a look at resolving the conflicts and ill be able to get to you a day after that -- i just need to validate it works properly from a consuming library
Sorry I took so long to resolve them. I was working on another project.
I'm not sure if this is a change you'll be interested in but it made a lot of sense for my project.
I added support to wrap byte arrays but to do this cleanly I refactored the allocation function into a companion function for
PlatformBuffer
. It made more sense to me to writePlatformBuffer.allocate()
andPlatformBuffer.wrap()
than having top level functions for them. I wasn't sure how to actually wrap the array on JS without using the NativeBuffer so it currently copies it.I also removed the
ParcelablePlatformBuffer
class and just added theParcelable
interface to thePlatformBuffer
class directly. I didn't see a clear reason for the extra class and it adds ambiguity since it is only actually parcelable on Android but the class name was alwaysParcelablePlatformBuffer
.