Lines Matching refs:alloc
38 const b = Buffer.alloc(128);
94 Buffer.alloc(0);
120 b.copy(Buffer.alloc(0), 0, 0, 0);
123 b.copy(Buffer.alloc(0), 1, 1, 1);
124 b.copy(Buffer.alloc(1), 1, 1, 1);
127 b.copy(Buffer.alloc(1), 0, 1024, 1024);
146 Buffer.alloc(1).write('', 1, 0);
870 // Test alloc with fill option
871 const buf = Buffer.alloc(5, '800A', 'hex');
886 Buffer.alloc(3.3).fill().toString();
913 () => Buffer.alloc(8).writeFloatLE(0, 5),
917 () => Buffer.alloc(16).writeDoubleLE(0, 9),
1134 const a = Buffer.alloc(1);
1135 const b = Buffer.alloc(1);
1155 assert.throws(() => Buffer.alloc({ valueOf: () => 1 }),
1157 assert.throws(() => Buffer.alloc({ valueOf: () => -1 }),
1167 Buffer.alloc(0x1000, 'This is not correctly encoded', 'hex');
1174 Buffer.alloc(0x1000, 'c', 'hex');
1181 Buffer.alloc(1, Buffer.alloc(0));
1188 Buffer.alloc(40, 'x', 20);