Skip to content

Commit

Permalink
fix dataview bindings (#246)
Browse files Browse the repository at this point in the history
* fix dataview bindings

* Update CHANGELOG.md
  • Loading branch information
hackwaly authored Oct 16, 2024
1 parent 6145690 commit 50160e4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## 1.6.1

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

## 1.6.0

Expand Down
50 changes: 25 additions & 25 deletions src/Core__DataView.res
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ external fromBufferWithRange: (Core__ArrayBuffer.t, ~byteOffset: int, ~length: i
@get external byteLength: t => int = "byteLength"
@get external byteOffset: t => int = "byteOffset"

@send external getInt8: t => int = "getInt8"
@send external getUint8: t => int = "getUint8"
@send external getInt16: t => int = "getInt16"
@send external getUint16: t => int = "getUint16"
@send external getInt32: t => int = "getInt32"
@send external getUint32: t => int = "getUint32"

@send external getFloat32: t => float = "getFloat32"
@send external getFloat64: t => float = "getFloat64"

@send external getBigInt64: t => bigint = "getBigInt64"
@send external getBigUint64: t => bigint = "getBigUint64"

@send external setInt8: (t, int) => unit = "setInt8"
@send external setUint8: (t, int) => unit = "setUint8"
@send external setInt16: (t, int) => unit = "setInt16"
@send external setUint16: (t, int) => unit = "setUint16"
@send external setInt32: (t, int) => unit = "setInt32"
@send external setUint32: (t, int) => unit = "setUint32"

@send external setFloat32: (t, float) => unit = "setFloat32"
@send external setFloat64: (t, float) => unit = "setFloat64"

@send external setBigInt64: (t, bigint) => unit = "setBigInt64"
@send external setBigUint64: (t, bigint) => unit = "setBigUint64"
@send external getInt8: (t, int) => int = "getInt8"
@send external getUint8: (t, int) => int = "getUint8"
@send external getInt16: (t, int) => int = "getInt16"
@send external getUint16: (t, int) => int = "getUint16"
@send external getInt32: (t, int) => int = "getInt32"
@send external getUint32: (t, int) => int = "getUint32"

@send external getFloat32: (t, int) => float = "getFloat32"
@send external getFloat64: (t, int) => float = "getFloat64"

@send external getBigInt64: (t, int) => bigint = "getBigInt64"
@send external getBigUint64: (t, int) => bigint = "getBigUint64"

@send external setInt8: (t, int, int) => unit = "setInt8"
@send external setUint8: (t, int, int) => unit = "setUint8"
@send external setInt16: (t, int, int) => unit = "setInt16"
@send external setUint16: (t, int, int) => unit = "setUint16"
@send external setInt32: (t, int, int) => unit = "setInt32"
@send external setUint32: (t, int, int) => unit = "setUint32"

@send external setFloat32: (t, int, float) => unit = "setFloat32"
@send external setFloat64: (t, int, float) => unit = "setFloat64"

@send external setBigInt64: (t, int, bigint) => unit = "setBigInt64"
@send external setBigUint64: (t, int, bigint) => unit = "setBigUint64"

0 comments on commit 50160e4

Please sign in to comment.