diff options
author | David Barksdale <amatus@amatus.name> | 2014-12-01 00:18:43 -0600 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-12-01 00:18:43 -0600 |
commit | 9742344c663181e52701dde04ef8f4609354624f (patch) | |
tree | 7b4d77bce6e7736a54ea81ae0cb06a35662a6f51 /src/cljs/gnunet_web/util.cljs | |
parent | cbfeab4fc59e055cca68021cb08e2eca343abcd1 (diff) |
Use GNUNET_TRANSPORT_monitor_peers
Diffstat (limited to 'src/cljs/gnunet_web/util.cljs')
-rw-r--r-- | src/cljs/gnunet_web/util.cljs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cljs/gnunet_web/util.cljs b/src/cljs/gnunet_web/util.cljs index 92a06f9..569a4b6 100644 --- a/src/cljs/gnunet_web/util.cljs +++ b/src/cljs/gnunet_web/util.cljs @@ -48,3 +48,8 @@ (defn i64-to-real [[lw hw]] (+ lw (* 4294967296 hw))) + +(defn read-memory + [pointer length] + (.call js/Array.prototype.slice + (.subarray js/HEAPU8 pointer (+ pointer length)))) |