Skip to content

How to convert JArray<jbyte> to Uint8List efficiently? #990

Closed
@yanshouwang

Description

@yanshouwang

When convert Uint8List to JArray, we can use the JArray<jbyte>.setRange extension method.
But I don't know how to do the opposite way.
Currently I can do this by use a for-loop, but I think this will spend a lot when convert a large byte array.

Metadata

Metadata

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions