aboutsummaryrefslogtreecommitdiff
path: root/src/emscriptif.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/emscriptif.ts')
-rw-r--r--src/emscriptif.ts19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/emscriptif.ts b/src/emscriptif.ts
index caa0fb8cc..60653b66e 100644
--- a/src/emscriptif.ts
+++ b/src/emscriptif.ts
@@ -14,21 +14,26 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import {AmountJson} from "./types";
-import * as emscLib from "./emscripten/taler-emscripten-lib";
/**
* Medium-level interface to emscripten-compiled modules used
- * by the wallet.
+ * by the wallet. Handles memory management by allocating by allocating
+ * objects in arenas that then can be disposed of all at once.
*
* The high-level interface (using WebWorkers) is exposed in src/cryptoApi.ts.
- *
- * @author Florian Dold
*/
-"use strict";
+/**
+ * Imports.
+ */
+import {AmountJson} from "./types";
+import * as emscLib from "./emscripten/taler-emscripten-lib";
+
-// Size of a native pointer.
+/**
+ * Size of a native pointer. Must match the size
+ * use when compiling via emscripten.
+ */
const PTR_SIZE = 4;
const GNUNET_OK = 1;