Lines Matching refs:transcode
22 const dest = buffer.transcode(orig, 'utf8', test);
29 const dest = buffer.transcode(Buffer.from(tests.ucs2), 'ucs2', 'utf8');
36 const utf8_to_ucs2 = buffer.transcode(utf8, 'utf8', 'ucs2');
37 const ucs2_to_utf8 = buffer.transcode(ucs2, 'ucs2', 'utf8');
45 () => buffer.transcode(null, 'utf8', 'ascii'),
55 () => buffer.transcode(Buffer.from('a'), 'b', 'utf8'),
56 /^Error: Unable to transcode Buffer \[U_ILLEGAL_ARGUMENT_ERROR\]/
60 () => buffer.transcode(Buffer.from('a'), 'uf8', 'b'),
61 /^Error: Unable to transcode Buffer \[U_ILLEGAL_ARGUMENT_ERROR\]$/
65 buffer.transcode(Buffer.from('hi', 'ascii'), 'ascii', 'utf16le'),
68 buffer.transcode(Buffer.from('hi', 'latin1'), 'latin1', 'utf16le'),
71 buffer.transcode(Buffer.from('hä', 'latin1'), 'latin1', 'utf16le'),
78 buffer.transcode(uint8array, 'latin1', 'utf16le'),
83 const dest = buffer.transcode(new Uint8Array(), 'utf8', 'latin1');
89 buffer.transcode(new buffer.SlowBuffer(1), 'utf16le', 'ucs2');