DitchOoM / buffer

Kotlin Multiplatform bytebuffer/byte[] wrapper
Apache License 2.0
63 stars 5 forks source link

Does this support kotlin wasm? #68

Open ColtonIdle opened 3 months ago

ColtonIdle commented 3 months ago

Title

thebehera commented 3 months ago

I will take a look but as of now it's not supported. Shouldn't be too hard to enable

IvanKopylov commented 3 months ago

@thebehera It would be great if you added this. Thanks!

UndeRus commented 1 month ago

You need to implement wasm version of PlatformBuffer, I tried implement it here https://github.com/UndeRus/buffer

thebehera commented 1 week ago

You need to implement wasm version of PlatformBuffer, I tried implement it here https://github.com/UndeRus/buffer

Are you sure a kotlin ByteArray is the right backing type? I still have to investigate further but I believe this might trigger extra memory copies compared to using some other type. Some reference: https://github.com/WebAssembly/design/issues/1162

Sorry this has been taking some time for me as other parts of life have been eating up my time