Skip to content

Common interoperability between Kotlin arrays and Js typed arrays #2809

@zibet27

Description

@zibet27

Is your feature request related to a problem? Please describe.

I would like to have a common interoperability methods to map between Kotlin arrays and Js Typed Arrays in both Js and WasmJs targets.

Describe the solution you'd like
Example methods:

  • ByteArray.toInt8Array()
  • UByteArray.toUint8Array()
  • IntArray.toInt32Array()
  • FloatArray.toFloat32Array()
    ...
    and another way:
  • Int8Array.toByteArray()
  • UintArray.toUByteArray()
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions