@hazae41/stdbob 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@hazae41/stdbob",
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "description": "Standard libraries for Bobine WebAssembly VM",
6
6
  "repository": "github:hazae41/stdbob",
7
7
  "author": "hazae41",
@@ -15,13 +15,13 @@ export namespace blobs {
15
15
  export function save(buffer: ArrayBuffer): blobref {
16
16
  const bytes = Uint8Array.wrap(buffer)
17
17
 
18
- const reference = $save(bytes.dataStart, bytes.length)
18
+ const reference = $save(<i32>bytes.dataStart, bytes.byteLength)
19
19
 
20
20
  return reference
21
21
  }
22
22
 
23
23
  export function load(blob: blobref): ArrayBuffer {
24
- const bytes = new Uint8Array(<i32>length(blob))
24
+ const bytes = new Uint8Array(length(blob))
25
25
 
26
26
  $load(blob, bytes.dataStart)
27
27