5 references to GetBytes
Microsoft.CodeAnalysis.UnitTests (5)
Text\StringTextTest_BigEndianUnicode.cs (1)
19
byte[] buffer =
GetBytes
(Encoding.BigEndianUnicode, source);
Text\StringTextTest_Unicode.cs (1)
19
byte[] buffer =
GetBytes
(Encoding.Unicode, source);
Text\StringTextTest_Utf8.cs (1)
19
byte[] buffer =
GetBytes
(new UTF8Encoding(encoderShouldEmitUTF8Identifier: true), source);
Text\StringTextTest_Utf8NoBOM.cs (1)
19
byte[] buffer =
GetBytes
(new UTF8Encoding(encoderShouldEmitUTF8Identifier: false), source);
Text\StringTextTests_Default.cs (1)
28
byte[] buffer =
GetBytes
(Encoding.Default, source);