39 references to SupportedEncoding
System.Runtime.Serialization (39)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (39)
54
SupportedEncoding
encodingCode;
158
SupportedEncoding
expectedEnc = GetSupportedEncoding(encoding);
159
SupportedEncoding
dataEnc;
162
dataEnc =
SupportedEncoding
.UTF8;
168
if ((expectedEnc !=
SupportedEncoding
.None) && (expectedEnc != dataEnc))
174
if (dataEnc ==
SupportedEncoding
.UTF8)
208
if (encodingCode ==
SupportedEncoding
.UTF8)
250
if (byteCount == 0 && encodingCode ==
SupportedEncoding
.UTF8)
275
if (encodingCode ==
SupportedEncoding
.UTF8)
294
if (encodingCode ==
SupportedEncoding
.UTF8)
303
static Encoding GetEncoding(
SupportedEncoding
e)
307
case
SupportedEncoding
.UTF8:
310
case
SupportedEncoding
.UTF16LE:
313
case
SupportedEncoding
.UTF16BE:
322
static string GetEncodingName(
SupportedEncoding
enc)
326
case
SupportedEncoding
.UTF8:
329
case
SupportedEncoding
.UTF16LE:
332
case
SupportedEncoding
.UTF16BE:
341
static
SupportedEncoding
GetSupportedEncoding(Encoding encoding)
345
return
SupportedEncoding
.None;
349
return
SupportedEncoding
.UTF8;
353
return
SupportedEncoding
.UTF16LE;
357
return
SupportedEncoding
.UTF16BE;
366
static
SupportedEncoding
ReadEncoding(byte b1, byte b2)
370
return
SupportedEncoding
.UTF16BE;
375
return
SupportedEncoding
.UTF16LE;
384
return
SupportedEncoding
.UTF8;
388
static void ThrowExpectedEncodingMismatch(
SupportedEncoding
expEnc,
SupportedEncoding
actualEnc)
413
if (encodingCode ==
SupportedEncoding
.UTF16LE)
479
SupportedEncoding
expectedEnc = GetSupportedEncoding(expectedEncoding);
480
SupportedEncoding
dataEnc = ReadEncoding();
481
if ((expectedEnc !=
SupportedEncoding
.None) && (expectedEnc != dataEnc))
487
if (dataEnc !=
SupportedEncoding
.UTF8)
515
if (this.encodingCode !=
SupportedEncoding
.UTF8)
523
SupportedEncoding
ReadEncoding()
530
SupportedEncoding
e;
534
e =
SupportedEncoding
.UTF8;
539
e =
SupportedEncoding
.UTF8;