Skip to content

Commit

Permalink
[web] Fix call api not support Uint8List buffers on js (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl authored Sep 25, 2023
1 parent a73ad95 commit e93676c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ class IrisApiEngineBindingsDelegateJS
List<Object> buffer = [];
List<int> lenOfBuffer = [];
int bufferCount = 0;
if (methodCall.buffers != null) {
bufferCount += methodCall.buffers!.length;
for (final rb in methodCall.buffers!) {
buffer.add(rb);
lenOfBuffer.add(rb.length);
}
}
if (methodCall.rawBufferParams != null) {
bufferCount = methodCall.rawBufferParams!.length;
bufferCount += methodCall.rawBufferParams!.length;
for (final rb in methodCall.rawBufferParams!) {
buffer.add(rb.intPtr());
lenOfBuffer.add(rb.length);
Expand Down

0 comments on commit e93676c

Please sign in to comment.