Skip to content

Commit 50160e4

Browse files
authored
fix dataview bindings (#246)
* fix dataview bindings * Update CHANGELOG.md
1 parent 6145690 commit 50160e4

File tree

2 files changed

+26
-25
lines changed

2 files changed

+26
-25
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## 1.6.1
66

77
- Add `difference`, `intersection`, `union`, `symmetricDifference`, `isSubsetOf`, `isSupersetOf`, `isDisjointFrom`, `toArray` functions to `Set`. https://github.com/rescript-association/rescript-core/pull/247
8+
- Fix bindings of DataView. https://github.com/rescript-association/rescript-core/pull/246
89

910
## 1.6.0
1011

src/Core__DataView.res

+25-25
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ external fromBufferWithRange: (Core__ArrayBuffer.t, ~byteOffset: int, ~length: i
1010
@get external byteLength: t => int = "byteLength"
1111
@get external byteOffset: t => int = "byteOffset"
1212

13-
@send external getInt8: t => int = "getInt8"
14-
@send external getUint8: t => int = "getUint8"
15-
@send external getInt16: t => int = "getInt16"
16-
@send external getUint16: t => int = "getUint16"
17-
@send external getInt32: t => int = "getInt32"
18-
@send external getUint32: t => int = "getUint32"
19-
20-
@send external getFloat32: t => float = "getFloat32"
21-
@send external getFloat64: t => float = "getFloat64"
22-
23-
@send external getBigInt64: t => bigint = "getBigInt64"
24-
@send external getBigUint64: t => bigint = "getBigUint64"
25-
26-
@send external setInt8: (t, int) => unit = "setInt8"
27-
@send external setUint8: (t, int) => unit = "setUint8"
28-
@send external setInt16: (t, int) => unit = "setInt16"
29-
@send external setUint16: (t, int) => unit = "setUint16"
30-
@send external setInt32: (t, int) => unit = "setInt32"
31-
@send external setUint32: (t, int) => unit = "setUint32"
32-
33-
@send external setFloat32: (t, float) => unit = "setFloat32"
34-
@send external setFloat64: (t, float) => unit = "setFloat64"
35-
36-
@send external setBigInt64: (t, bigint) => unit = "setBigInt64"
37-
@send external setBigUint64: (t, bigint) => unit = "setBigUint64"
13+
@send external getInt8: (t, int) => int = "getInt8"
14+
@send external getUint8: (t, int) => int = "getUint8"
15+
@send external getInt16: (t, int) => int = "getInt16"
16+
@send external getUint16: (t, int) => int = "getUint16"
17+
@send external getInt32: (t, int) => int = "getInt32"
18+
@send external getUint32: (t, int) => int = "getUint32"
19+
20+
@send external getFloat32: (t, int) => float = "getFloat32"
21+
@send external getFloat64: (t, int) => float = "getFloat64"
22+
23+
@send external getBigInt64: (t, int) => bigint = "getBigInt64"
24+
@send external getBigUint64: (t, int) => bigint = "getBigUint64"
25+
26+
@send external setInt8: (t, int, int) => unit = "setInt8"
27+
@send external setUint8: (t, int, int) => unit = "setUint8"
28+
@send external setInt16: (t, int, int) => unit = "setInt16"
29+
@send external setUint16: (t, int, int) => unit = "setUint16"
30+
@send external setInt32: (t, int, int) => unit = "setInt32"
31+
@send external setUint32: (t, int, int) => unit = "setUint32"
32+
33+
@send external setFloat32: (t, int, float) => unit = "setFloat32"
34+
@send external setFloat64: (t, int, float) => unit = "setFloat64"
35+
36+
@send external setBigInt64: (t, int, bigint) => unit = "setBigInt64"
37+
@send external setBigUint64: (t, int, bigint) => unit = "setBigUint64"

0 commit comments

Comments
 (0)