Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/WasmWebService.js @ 466:5055031f4a06 bgo-commands-codegen
- Added browserify to build. This allows using require calls for modules that
work with tsc compiler.
- removed older stuff related to Protocol Buffers and Flatbuffers
- changed triple-slash references to import statements
- module prefixes are now added at call sites
- added cmake module for filename handling
- switched to Ninja for sample build
- Added virtual dtor in ICommand
author | bgo-osimis |
---|---|
date | Mon, 11 Feb 2019 16:00:04 +0100 |
parents | e641d3978856 |
children | 1b9973905e15 |
comparison
equal
deleted
inserted
replaced
448:cc47e6eaefb0 | 466:5055031f4a06 |
---|---|
22 stringToUTF8(s, headers, s.length + 1); | 22 stringToUTF8(s, headers, s.length + 1); |
23 | 23 |
24 // TODO - Is "new Uint8Array()" necessary? This copies the | 24 // TODO - Is "new Uint8Array()" necessary? This copies the |
25 // answer to the WebAssembly stack, hence necessitating | 25 // answer to the WebAssembly stack, hence necessitating |
26 // increasing the TOTAL_STACK parameter of Emscripten | 26 // increasing the TOTAL_STACK parameter of Emscripten |
27 WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), | 27 window.WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), |
28 this.response.byteLength, headers, payload); | 28 this.response.byteLength, headers, payload); |
29 } else { | 29 } else { |
30 WasmWebService_NotifyError(callableFailure, url_, payload); | 30 window.WasmWebService_NotifyError(callableFailure, url_, payload); |
31 } | 31 } |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 xhr.send(); | 35 xhr.send(); |