6 overrides of GetString
mscorlib (6)
system\text\asciiencoding.cs (1)
371
public override unsafe String
GetString
(byte[] bytes, int byteIndex, int byteCount)
system\text\encodingnls.cs (1)
340
public override unsafe String
GetString
(byte[] bytes, int index, int count)
system\text\unicodeencoding.cs (1)
409
public override unsafe String
GetString
(byte[] bytes, int index, int count)
system\text\utf32encoding.cs (1)
408
public override unsafe String
GetString
(byte[] bytes, int index, int count)
system\text\utf7encoding.cs (1)
479
public override unsafe String
GetString
(byte[] bytes, int index, int count)
system\text\utf8encoding.cs (1)
441
public override unsafe String
GetString
(byte[] bytes, int index, int count)
110 references to GetString
mscorlib (5)
system\diagnostics\eventing\eventprovider.cs (2)
321
string key = System.Text.Encoding.UTF8.
GetString
(data, keyIndex, keyEnd - keyIndex);
322
string value = System.Text.Encoding.UTF8.
GetString
(data, valueIdx, valueEnd - valueIdx);
system\diagnostics\eventing\eventsource.cs (1)
466
return (manifestBytes == null) ? null : Encoding.UTF8.
GetString
(manifestBytes, 0, manifestBytes.Length);
system\resources\resourcereader.cs (1)
499
return Encoding.Unicode.
GetString
(bytes, 0, byteLen);
system\text\encoding.cs (1)
1490
return
GetString
(bytes, 0, bytes.Length);
PresentationCore (1)
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (1)
280
string strPBrush = System.Text.Encoding.ASCII.
GetString
(rawData, pHeader.headersize + 12, 6);
PresentationFramework (6)
src\Framework\System\Windows\Documents\RtfToXamlLexer.cs (5)
115
token.Text = CurrentEncoding.
GetString
(_rtfBytes, controlStartIndex - 1, _rtfIndex - rtfStartIndex);
133
token.Text = CurrentEncoding.
GetString
(_rtfBytes, _rtfIndex, 1);
408
token.Text = CurrentEncoding.
GetString
(bytes, 0, i);
412
token.Text = CurrentEncoding.
GetString
(_rtfBytes, s, e - s);
442
string controlName = CurrentEncoding.
GetString
(_rtfBytes, controlStartIndex, controlLength);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
8864
dn.AppendXamlEncoded(ec.
GetString
(ba, 0, nChars));
System (14)
net\System\Net\_RegBlobWebProxyDataBuilder.cs (1)
164
stringOut = Encoding.UTF8.
GetString
(m_RegistryBytes, m_ByteOffset, stringSize);
net\System\Net\_SecureChannel.cs (1)
1117
GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt() buffer:[" + Encoding.ASCII.
GetString
(buffer, 0, Math.Min(buffer.Length,128)) + "]");
net\System\Net\Cache\WinInetCache.cs (1)
556
entry.MetaInfo = Encoding.Unicode.
GetString
(buffer, (int)bufferPtr->_OffsetHeaderInfo, (bufferCharLength-(int)bufferPtr->_OffsetHeaderInfo/2)*2);
net\System\Net\HttpWebRequest.cs (1)
5104
if (Logging.On) Logging.PrintInfo(Logging.Web, this, "Request: "+Encoding.ASCII.
GetString
(WriteBuffer, 0, offset));
net\System\Net\mail\Base64Stream.cs (1)
330
return ASCIIEncoding.ASCII.
GetString
(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\MimeBasePart.cs (1)
85
newValue += encoding.
GetString
(buffer, 0, newLength);
net\System\Net\mail\QEncodedStream.cs (1)
292
return ASCIIEncoding.ASCII.
GetString
(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\QuotedPrintableStream.cs (1)
326
return ASCIIEncoding.ASCII.
GetString
(this.WriteState.Buffer, 0, this.WriteState.Length);
net\System\Net\mail\SmtpReplyReaderFactory.cs (2)
345
builder.Append(Encoding.UTF8.
GetString
(byteBuffer, start, actual));
479
builder.Append(Encoding.UTF8.
GetString
(parent.byteBuffer, start, actual));
net\System\Net\webclient.cs (1)
1654
return enc.
GetString
(data, bomLengthInData, data.Length - bomLengthInData);
net\System\Net\WebHeaderCollection.cs (1)
1566
GlobalLog.Enter("WebHeaderCollection::ParseHeadersStrict(): size:" + size.ToString() + ", unparsed:" + unparsed.ToString() + " buffer:[" + Encoding.ASCII.
GetString
(buffer, unparsed, Math.Min(256, size-unparsed)) + "]");
net\System\Net\WebSockets\WebSocketBuffer.cs (1)
438
reason = Encoding.UTF8.
GetString
(reasonBlob.Array, reasonBlob.Offset, reasonBlob.Count);
sys\system\io\ports\SerialPort.cs (1)
1218
return Encoding.
GetString
(bytesReceived, 0, lastFullCharIndex + 1);
System.Data (13)
fx\src\data\System\Data\Odbc\OdbcConnection.cs (2)
363
value = Encoding.Unicode.
GetString
(buffer, 0, Math.Min(cbActual, buffer.Length));
448
value = Encoding.Unicode.
GetString
(buffer, 0, Math.Min(cbActual, buffer.Length));
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (2)
299
else if (System.Text.Encoding.Unicode.
GetString
(bytes, 0, hdrlength) != UDL.Header) {
305
connectionString = System.Text.Encoding.Unicode.
GetString
(bytes, 0, count);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2157
sdc.machineName = cp.
GetString
(memMap.rgbMachineName, 0, memMap.rgbMachineName.Length);
2158
sdc.sdiDllName = cp.
GetString
(memMap.rgbDllName, 0, memMap.rgbDllName.Length);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
2603
_parser.EnclaveType = Encoding.Unicode.
GetString
(data, 2, (data.Length - 2));
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
3206
data = System.Text.Encoding.Unicode.
GetString
(tokenData, checked((int)dataOffset), checked((int)dataLen));
5230
string strValue = encoding.
GetString
(unencryptedBytes, 0, length);
5245
string strValue = System.Text.Encoding.Unicode.
GetString
(unencryptedBytes, 0, length);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
1597
value = System.Text.Encoding.Unicode.
GetString
(buf, offset, cBytes);
1664
value = encoding.
GetString
(buf, offset, length);
fx\src\data\System\Data\SQLTypes\SQLString.cs (1)
150
m_value = cpe.
GetString
(data, index, count);
System.Data.Services (3)
parent\Client\System\Data\Services\Client\BatchStream.cs (3)
969
s = this.Encoding.
GetString
(buffer, 0, buffer.Length);
973
s = this.Encoding.
GetString
(this.byteBuffer, this.bytePosition, i);
1013
return this.Encoding.
GetString
(buffer, 0, buffer.Length);
System.Data.Services.Client (3)
System\Data\Services\Client\BatchStream.cs (3)
969
s = this.Encoding.
GetString
(buffer, 0, buffer.Length);
973
s = this.Encoding.
GetString
(this.byteBuffer, this.bytePosition, i);
1013
return this.Encoding.
GetString
(buffer, 0, buffer.Length);
System.Drawing (1)
commonui\System\Drawing\ImageConverter.cs (1)
216
string strPBrush = System.Text.Encoding.ASCII.
GetString
(rawData, pHeader.headersize + 12, 6);
System.IdentityModel (1)
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (1)
66
string contentAsString = System.Text.Encoding.UTF8.
GetString
(contentBuffer, 0, (int)_logStream.Length);
System.Runtime.Remoting (4)
channels\core\corechannel.cs (1)
670
String base64String = Encoding.ASCII.
GetString
(byteArray,0, byteArray.Length);
channels\http\httpchannelhelper.cs (1)
362
String newUri = Encoding.UTF8.
GetString
(uriBytes, 0, length);
channels\http\httpstreams.cs (1)
732
requestURI = Encoding.UTF8.
GetString
(requestUriBytes, 0, decodedUriLength);
channels\sinks\soapformattersinks.cs (1)
280
sb.Append(Encoding.ASCII.
GetString
(buffer, 0, readCount));
System.Runtime.Serialization (31)
System\Runtime\Serialization\Json\XmlJsonReader.cs (8)
607
XmlExceptionHelper.ThrowTokenExpected(this, "false", Encoding.UTF8.
GetString
(buffer, offset, 5));
615
XmlExceptionHelper.ThrowTokenExpected(this, "false", Encoding.UTF8.
GetString
(buffer, offset, 4) + (char)ch);
628
XmlExceptionHelper.ThrowTokenExpected(this, "true", Encoding.UTF8.
GetString
(buffer, offset, 4));
636
XmlExceptionHelper.ThrowTokenExpected(this, "true", Encoding.UTF8.
GetString
(buffer, offset, 4) + (char)ch);
649
XmlExceptionHelper.ThrowTokenExpected(this, "null", Encoding.UTF8.
GetString
(buffer, offset, 4));
662
XmlExceptionHelper.ThrowTokenExpected(this, "null", Encoding.UTF8.
GetString
(buffer, offset, 4) + (char)ch);
1276
string bufferAsString = Encoding.UTF8.
GetString
(buffer, offset, 4);
1287
bufferAsString = Encoding.UTF8.
GetString
(buffer, offset, 4);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
488
WriteEscapedJsonString(BinHexEncoding.
GetString
(buffer, index, count));
System\Xml\XmlBaseWriter.cs (8)
1341
WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(trailBytes, 0, trailByteCount));
1342
WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(buffer, offset, actualByteCount - trailByteCount));
1443
writer.WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(writer.trailBytes, 0, writer.trailByteCount));
1444
writer.WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(buffer, this.offset, actualByteCount - writer.trailByteCount));
1518
WriteRaw(BinHexEncoding.
GetString
(buffer, offset, count));
1692
WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(trailBytes, 0, trailByteCount));
2530
this.writer.WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(this.writer.trailBytes, 0, this.writer.trailByteCount));
2531
this.writer.WriteAttributeText(XmlConverter.Base64Encoding.
GetString
(this.buffer, this.offset, actualByteCount - this.writer.trailByteCount));
System\Xml\XmlBinaryWriter.cs (3)
998
captureText = XmlConverter.Base64Encoding.
GetString
(captureStream.GetBuffer(), 0, (int)captureStream.Length);
1036
WriteText(XmlConverter.Base64Encoding.
GetString
(trailBytes, 0, trailByteCount));
1038
WriteText(XmlConverter.Base64Encoding.
GetString
(buffer, offset, count));
System\Xml\XmlC14NWriter.cs (1)
271
if (String.Compare(Encoding.UTF8.
GetString
(xmlnsBuffer, xmlnsAttribute.prefixOffset, xmlnsAttribute.prefixLength), this.inclusivePrefixes[i], StringComparison.Ordinal) == 0)
System\Xml\XmlNodeWriter.cs (8)
56
WriteStartElement(Encoding.UTF8.
GetString
(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.
GetString
(localNameBuffer, localNameOffset, localNameLength));
63
WriteEndElement(Encoding.UTF8.
GetString
(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.
GetString
(localNameBuffer, localNameOffset, localNameLength));
68
WriteXmlnsAttribute(Encoding.UTF8.
GetString
(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.
GetString
(nsBuffer, nsOffset, nsLength));
74
WriteStartAttribute(Encoding.UTF8.
GetString
(prefixBuffer, prefixOffset, prefixLength), Encoding.UTF8.
GetString
(localNameBuffer, localNameOffset, localNameLength));
System\Xml\XmlUTF8TextReader.cs (2)
407
XmlExceptionHelper.ThrowTokenExpected(this, "?>", Encoding.UTF8.
GetString
(buffer, offset, 2));
818
XmlExceptionHelper.ThrowTokenExpected(this, "[CDATA[", Encoding.UTF8.
GetString
(buffer, offset, 7));
System.ServiceModel (5)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
592
string value = Encoding.UTF8.
GetString
(buffer, offset, utf8ValueSize);
System\ServiceModel\Channels\FramingDecoders.cs (1)
159
value = Encoding.UTF8.
GetString
(encodedBytes, 0, encodedSize);
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3746
return System.Text.Encoding.UTF8.
GetString
(responseBuffer, 0, bytesRead);
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
56
this.messageString = System.Text.Encoding.UTF8.
GetString
(buffer.Array, buffer.Offset, buffer.Count);
System\ServiceModel\Transactions\WhereaboutsReader.cs (1)
154
this.hostName = Encoding.Unicode.
GetString
(chars, 0, cbString);
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
175
return Encoding.UTF8.
GetString
(memoryStream.GetBuffer(), (int) memoryStream.Position, (int) memoryStream.Length);
System.Web (6)
Hosting\ISAPIWorkerRequest.cs (2)
299
return encoding.
GetString
(_byteBuffer, 0, len);
353
ss[iString] = encoding.
GetString
(_byteBuffer, iStart, iEnd-iStart);
Security\ADMembershipProvider.cs (1)
3421
return Encoding.Unicode.
GetString
(bAll, AD_SALT_SIZE_IN_BYTES, bAll.Length - AD_SALT_SIZE_IN_BYTES);
Security\AnonymousIdentificationModule.cs (1)
370
string id = Encoding.UTF8.
GetString
(bBlob, 12, len);
Security\AntiXss\AntiXssEncoder.cs (1)
41
string utf8String = Encoding.UTF8.
GetString
(bytes, offset, count);
Security\SQLMembershipProvider.cs (1)
1962
return Encoding.Unicode.
GetString
(bRet, SALT_SIZE, bRet.Length - SALT_SIZE);
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Application.cs (1)
1645
return Encoding.Unicode.
GetString
(bytes, 0, length - 2);
winforms\Managed\System\WinForms\RichTextBox.cs (2)
3118
result = Encoding.Unicode.
GetString
(bytes,0 , bytes.Length);
3121
result = Encoding.Default.
GetString
(bytes, 0, bytes.Length);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
6554
string result = Encoding.Default.
GetString
(buffer, offset, i - offset);
System.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (4)
2054
return unicode.
GetString
(this.data, pos, checked(cch * 2));
3543
return enc.
GetString
( this.data, pos + 4, this.tokLen - 4 );
3679
return enc.
GetString
(this.data, pos + 4, this.tokLen - 4);
3842
enc.
GetString
(this.data, pos + 4, this.tokLen - 4),
WindowsBase (2)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (1)
1167
return Encoding.Unicode.
GetString
(dataBuffer, 0, dataBuffer.Length - 2);
Shared\MS\Win32\NativeMethodsCLR.cs (1)
6196
string result = Encoding.Default.
GetString
(buffer, offset, i - offset);
WsatConfig (3)
Configuration\ClusterRegistryConfigurationProvider.cs (2)
196
return Encoding.Unicode.
GetString
(buffer, 0, buffer.Length - 2);
287
return Encoding.Unicode.
GetString
(buffer, start, index - start - 2);
Configuration\MsdtcClusterUtils.cs (1)
336
return Encoding.Unicode.
GetString
(buffer, 0, buffer.Length - 2);
WsatUI (3)
Configuration\ClusterRegistryConfigurationProvider.cs (2)
196
return Encoding.Unicode.
GetString
(buffer, 0, buffer.Length - 2);
287
return Encoding.Unicode.
GetString
(buffer, start, index - start - 2);
Configuration\MsdtcClusterUtils.cs (1)
336
return Encoding.Unicode.
GetString
(buffer, 0, buffer.Length - 2);