Files
node/doc/api
Joyee Cheung 2cfabb11e1 zlib: expose zlib.crc32()
This patch exposes the crc32() function from zlib to user-land.

It computes a 32-bit Cyclic Redundancy Check checksum of `data`. If
`value` is specified, it is used as the starting value of the checksum,
otherwise, 0 is used as the starting value.

```js
const zlib = require('node:zlib');
const { Buffer } = require('node:buffer');

let crc = zlib.crc32('hello');  // 907060870
crc = zlib.crc32('world', crc);  // 4192936109

crc = zlib.crc32(Buffer.from('hello'));  // 907060870
crc = zlib.crc32(Buffer.from('world'), crc);  // 4192936109
```

PR-URL: https://github.com/nodejs/node/pull/52692
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-05-02 12:54:46 +00:00
..
2024-05-01 12:24:48 +00:00
2024-03-18 14:27:59 +00:00
2024-04-24 15:20:02 -03:00
2023-04-23 13:34:08 +00:00
2024-04-13 19:41:20 +00:00
2024-04-24 15:20:02 -03:00
2024-04-24 15:20:02 -03:00
2024-04-21 09:03:50 +00:00
2023-08-10 15:37:10 +00:00
2024-04-24 15:20:02 -03:00
2024-04-24 15:20:02 -03:00
2024-04-24 15:20:02 -03:00
2024-02-13 21:37:42 +00:00
2022-11-01 04:21:13 +00:00
2023-05-21 16:41:28 +00:00
2024-04-24 15:20:02 -03:00
2024-03-26 17:42:38 +00:00
2024-05-02 12:54:46 +00:00