How to use the kMaxLength function from buffer
Find comprehensive JavaScript buffer.kMaxLength code examples handpicked from public code repositorys.
7 8 9 10 11 12 13 14 15 16 17
const assert = require('assert'); // Change kMaxLength for zlib to trigger the error without having to allocate // large Buffers. const buffer = require('buffer'); const oldkMaxLength = buffer.kMaxLength; buffer.kMaxLength = 64; const zlib = require('zlib'); buffer.kMaxLength = oldkMaxLength;
0
0
0
buffer.Buffer is the most popular function in buffer (219 examples)