diff --git a/lib/src/impl/platform/web/js_iris_api_engine_binding_delegate.dart b/lib/src/impl/platform/web/js_iris_api_engine_binding_delegate.dart index e10e81695..5b4c6cf6d 100644 --- a/lib/src/impl/platform/web/js_iris_api_engine_binding_delegate.dart +++ b/lib/src/impl/platform/web/js_iris_api_engine_binding_delegate.dart @@ -46,8 +46,15 @@ class IrisApiEngineBindingsDelegateJS List buffer = []; List 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);