Jarred Sumner
4648131c41
Add missing buffer module exports
2023-01-16 12:49:57 -08:00
Jarred Sumner
bcabf31121
Make Buffer mockable
2023-01-10 18:49:26 -08:00
Malcolm Still
f1e6ea2254
Implement Buffer swap16, swap32, swap64 ( #1659 )
...
* Implement Buffer swap16, swap32, swap64
* Initial incorporation of feedback
- Use constexpr
- Clean up the indexing
- Check for detached
- Use suggested text for exception text
2023-01-10 18:43:58 -08:00
Jarred Sumner
4a328609b9
10x faster new Buffer ( #1717 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-01-04 03:30:15 -08:00
Jarred Sumner
ed15259623
Fix Buffer.toString("latin1") and make Buffer.toString("utf16le") faster
...
Fixes #455
Fixes #1016
2022-11-27 20:21:41 -08:00
Jarred Sumner
4272038743
Fix failing buffer tests
2022-11-27 20:04:57 -08:00
Colin McDonnell
f7f1b60444
Add bun-types, add typechecking, add child_process types ( #1475 )
...
* Add bun-types to packages
* Improve typing
* Fix types in tests
* Fix dts tests
* Run formatter
* Fix all type errors
* Add strict mode, fix type errors
* Add ffi changes
* Move workflows to root
* Add workflows
* Remove labeler
* Add child_process types
* Fix synthetic defaults issue
* Remove docs
* Move scripts
* Run prettier
* Include examples in typechecking
* captureStackTrace types
* moved captureStackTrace types to globals
* Address reviews
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2022-11-09 15:40:40 -08:00
Jarred Sumner
af3931371e
Fix Buffer.from(text, "base64") and Buffer.toString("base64")
2022-11-08 21:30:54 -08:00
Jarred Sumner
38db5f1c83
Fix Buffer.slice and Buffer.subarray
2022-11-08 00:07:25 -08:00
Jarred Sumner
6970250b57
Fix Buffer.toJSON()
2022-10-06 14:18:12 -07:00
Jarred Sumner
0ce709d96a
Make new HTTP client more stable
2022-09-16 00:53:03 -07:00
Jarred Sumner
9797b676b1
Add test
2022-09-11 17:11:23 -07:00
Taher
8651799097
Fixed JSBuffer write issues ( #1175 )
2022-08-29 13:09:46 -07:00
Zilin Zhu
2641884342
Add buffer.indexOf, includes and lastIndexOf ( #1112 )
...
* Add buffer.indexOf, includes and lastIndexOf
* use memmem
* use int64_t
* fix upon reviews
2022-08-20 00:17:17 -07:00
Zilin Zhu
b1bc549cf7
fix buffer.slice(0, 0) ( #1114 )
2022-08-19 23:25:10 -07:00
Zilin Zhu
8cf57eb582
fix buffer.copy ( #1113 )
2022-08-19 23:13:38 -07:00
Jarred Sumner
0e4db0b28f
Add string support to Buffer.fill
2022-08-18 21:09:26 -07:00
Jarred Sumner
b310d7c40d
[node.js compat] latin1 & ascii encoding for Buffer
2022-08-03 21:11:20 -07:00
szatkus
a00eb95e29
#609 Don't truncate ascii buffers to 7-bit ( #775 )
2022-07-27 11:42:39 -07:00
Jarred Sumner
b15d862275
Fix buffer test which was failing for correct reasons
2022-06-23 01:35:48 -07:00
Jarred Sumner
729d445b68
change the directory structure
2022-06-22 23:21:48 -07:00