diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-24 16:14:23 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-24 16:14:23 +0200 |
commit | 1c8206f8c0c8921643aa1b070fbe6648411300fe (patch) | |
tree | 1ee523e701fa369d0290d14e50a6f0b3cb5fb50f /src/emscriptif.ts | |
parent | fc53a08bb0ffaf2bd49408f50701f17cdd603fb9 (diff) |
remove dead code and add comments
Diffstat (limited to 'src/emscriptif.ts')
-rw-r--r-- | src/emscriptif.ts | 19 |
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; |