Ai Hoshino
c2755f770c
Add alias for readBigUInt64BE ... ( #3514 )
...
* Add alias for `readBigUInt64BE` ...
Close: https://github.com/oven-sh/bun/issues/3338
* add some tests for `readBigUint64BE` alias
* format code
2023-07-04 15:38:44 -07:00
Jarred Sumner
c3f8593f8c
[node:buffer] Implement isUtf8 and isAscii ( #3498 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-02 18:06:21 -07:00
Ai Hoshino
4720fa1207
[WIP]Fix calling Buffer.toString with (offset, length, encoding) ( #3467 )
...
* Allow `toString` to be called with `(offset, length, encoding)`.
Close : #3085
* handle undefined value
* add tests for buffer.xxxSlice
* fix parameters
* fix offset and length
2023-07-01 17:01:52 -07:00
Jarred Sumner
e869fc092f
[node:buffer] Add missing inspect function
...
cc @paperdave
2023-05-22 13:53:24 -07:00
Alex Lam S.L
28346e4a39
improve Buffer compatibility with Node.js ( #2341 )
...
* improve `Buffer` compatibility with Node.js
* use `memmove()`
allow `encoding` to be `undefined`
2023-03-07 22:29:29 -08:00
Ashcon Partovi
f7e4eb8369
Reorganize tests ( #2332 )
2023-03-07 12:22:34 -08:00