05nelsonm / kmp-file

A very simple File API for Kotlin Multiplatform. It gets the job done.
Apache License 2.0
2 stars 0 forks source link

Add `Buffer.alloc` for `Node.js` #66

Closed 05nelsonm closed 3 months ago

05nelsonm commented 5 months ago

https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-node/src/jsMain/generated/node/buffer/Buffer.class.kt

05nelsonm commented 3 months ago

Yup, kotlin-wrapper implementation is wrong and uses Int which has a max value of 2147483647, whereas Node.js Buffer maximum is 9007199254740991 (depending on node version and platform) which exceeds Int.