Skip to content

Commit 47ff6ae

Browse files
authored
Merge pull request #33 from muqiuhan/feat.buffer.1
feat(buffer): add some new function bindings.
2 parents f6054bf + e1f426f commit 47ff6ae

File tree

5 files changed

+25
-17
lines changed

5 files changed

+25
-17
lines changed

lib/js/src/Cluster.bs.js

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"changie": "^1.18.0",
2020
"onchange": "^7.1.0",
2121
"pta": "^1.2.0",
22-
"rescript": "^11.0.1",
22+
"rescript": "^11.1.0",
2323
"zora": "^5.2.0"
2424
},
2525
"files": [
File renamed without changes.

src/Buffer.res

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,25 @@ external readUintBE: (t, ~offset: int, ~length: int) => float = "readUintBE"
272272
@send
273273
external readUintLE: (t, ~offset: int, ~length: int) => float = "readUintLE"
274274

275-
@send external slice: (t, ~start: int, ~end_: int) => t = "slice"
276-
@send external sliceToEnd: (t, ~start: int) => t = "slice"
275+
@send
276+
external readBigInt64BE: (t, ~offset: int) => bigint = "readBigInt64BE"
277+
278+
@send
279+
external readBigInt64LE: (t, ~offset: int) => bigint = "readBigInt64LE"
280+
281+
@send
282+
external readBigUint64BE: (t, ~offset: int) => bigint = "readBigUInt64BE"
283+
284+
@send
285+
external readBigUint64LE: (t, ~offset: int) => bigint = "readBigUInt64LE"
286+
287+
@deprecated("Use `subarray` instead") @send
288+
external slice: (t, ~start: int, ~end_: int) => t = "slice"
289+
@deprecated("Use `subarrayToEnd` instead") @send
290+
external sliceToEnd: (t, ~start: int) => t = "slice"
291+
292+
@send external subarray: (t, ~start: int, ~end_: int) => t = "subarray"
293+
@send external subarrayToEnd: (t, ~start: int) => t = "subarray"
277294

278295
@send external swap16: t => t = "swap16"
279296
@send external swap32: t => t = "swap32"

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,19 +971,19 @@ __metadata:
971971
changie: "npm:^1.18.0"
972972
onchange: "npm:^7.1.0"
973973
pta: "npm:^1.2.0"
974-
rescript: "npm:^11.0.1"
974+
rescript: "npm:^11.1.0"
975975
zora: "npm:^5.2.0"
976976
languageName: unknown
977977
linkType: soft
978978

979-
"rescript@npm:^11.0.1":
980-
version: 11.0.1
981-
resolution: "rescript@npm:11.0.1"
979+
"rescript@npm:^11.1.0":
980+
version: 11.1.4
981+
resolution: "rescript@npm:11.1.4"
982982
bin:
983983
bsc: bsc
984984
bstracing: lib/bstracing
985985
rescript: rescript
986-
checksum: a37dc757a14c57a15fe75a12df52f3d564cc6ef5cacc8356fe70a7d4ab9692736c0fbb56456dff090d8b5b18935a09aed066c623e6764f4c76bed61187e611b7
986+
checksum: 7f12186a84209f586457a60e65755fcdfbcbb503ac805c60ab5132ce4c927bc264c3b851419ed5498ba7dc4066723377bb7453f893f482a0ccd424986d02beba
987987
languageName: node
988988
linkType: hard
989989

0 commit comments

Comments
 (0)