Lines Matching refs:of

3 // Permission is hereby granted, free of charge, to any person obtaining a
4 // copy of this software and associated documentation files (the
7 // distribute, sublicense, and/or sell copies of the Software, and to permit
12 // in all copies or substantial portions of the Software.
25 // result of the entire buffer.
42 testEnd('utf8', Buffer.of(0xE2), Buffer.of(0x61), '\uFFFDa');
43 testEnd('utf8', Buffer.of(0xE2), Buffer.of(0x82), '\uFFFD\uFFFD');
44 testEnd('utf8', Buffer.of(0xE2), Buffer.of(0xE2), '\uFFFD\uFFFD');
45 testEnd('utf8', Buffer.of(0xE2, 0x82), Buffer.of(0x61), '\uFFFDa');
46 testEnd('utf8', Buffer.of(0xE2, 0x82), Buffer.of(0xAC), '\uFFFD\uFFFD');
47 testEnd('utf8', Buffer.of(0xE2, 0x82), Buffer.of(0xE2), '\uFFFD\uFFFD');
48 testEnd('utf8', Buffer.of(0xE2, 0x82, 0xAC), Buffer.of(0x61), '€a');
50 testEnd('utf16le', Buffer.of(0x3D), Buffer.of(0x61, 0x00), 'a');
51 testEnd('utf16le', Buffer.of(0x3D), Buffer.of(0xD8, 0x4D, 0xDC), '\u4DD8');
52 testEnd('utf16le', Buffer.of(0x3D, 0xD8), Buffer.of(), '\uD83D');
53 testEnd('utf16le', Buffer.of(0x3D, 0xD8), Buffer.of(0x61, 0x00), '\uD83Da');
56 Buffer.of(0x3D, 0xD8),
57 Buffer.of(0x4D, 0xDC),
60 testEnd('utf16le', Buffer.of(0x3D, 0xD8, 0x4D), Buffer.of(), '\uD83D');
63 Buffer.of(0x3D, 0xD8, 0x4D),
64 Buffer.of(0x61, 0x00),
67 testEnd('utf16le', Buffer.of(0x3D, 0xD8, 0x4D), Buffer.of(0xDC), '\uD83D');
70 Buffer.of(0x3D, 0xD8, 0x4D, 0xDC),
71 Buffer.of(0x61, 0x00),
75 testEnd('base64', Buffer.of(0x61), Buffer.of(), 'YQ==');
76 testEnd('base64', Buffer.of(0x61), Buffer.of(0x61), 'YQ==YQ==');
77 testEnd('base64', Buffer.of(0x61, 0x61), Buffer.of(), 'YWE=');
78 testEnd('base64', Buffer.of(0x61, 0x61), Buffer.of(0x61), 'YWE=YQ==');
79 testEnd('base64', Buffer.of(0x61, 0x61, 0x61), Buffer.of(), 'YWFh');
80 testEnd('base64', Buffer.of(0x61, 0x61, 0x61), Buffer.of(0x61), 'YWFhYQ==');
82 testEnd('base64url', Buffer.of(0x61), Buffer.of(), 'YQ');
83 testEnd('base64url', Buffer.of(0x61), Buffer.of(0x61), 'YQYQ');
84 testEnd('base64url', Buffer.of(0x61, 0x61), Buffer.of(), 'YWE');
85 testEnd('base64url', Buffer.of(0x61, 0x61), Buffer.of(0x61), 'YWEYQ');
86 testEnd('base64url', Buffer.of(0x61, 0x61, 0x61), Buffer.of(), 'YWFh');
87 testEnd('base64url', Buffer.of(0x61, 0x61, 0x61), Buffer.of(0x61), 'YWFhYQ');