10 overrides of GetBytes
System.Console (1)
src\libraries\Common\src\System\Text\ConsoleEncoding.cs (1)
78
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
119
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
450
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
295
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
174
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
213
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
221
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
257
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
342
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
System.Text.Encoding.CodePages (1)
System\Text\EncodingNLS.cs (1)
167
public override unsafe int
GetBytes
(char* chars, int charCount, byte* bytes, int byteCount)
15 references to GetBytes
Microsoft.AspNetCore.Components.Server (2)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (2)
931
int byteCount = StringEncoding.UTF8.
GetBytes
(pValue, value.Length, pBuffer + useOffset, bufferSize);
950
int byteCount = StringEncoding.UTF8.
GetBytes
(pValue, value.Length, pBuffer + useOffset, bufferSize);
Microsoft.AspNetCore.Cryptography.KeyDerivation (2)
PBKDF2\Win7Pbkdf2Provider.cs (1)
52
cbPasswordBufferUsed = Encoding.UTF8.
GetBytes
(pszPassword, password.Length, pbPasswordBuffer, cbPasswordBuffer);
PBKDF2\Win8Pbkdf2Provider.cs (1)
86
cbPasswordBufferUsed = Encoding.UTF8.
GetBytes
(pszPassword, password.Length, pbPasswordBuffer, cbPasswordBuffer);
Microsoft.ML.Tokenizers (2)
Utils\Helpers.netstandard.cs (2)
76
return Encoding.UTF8.
GetBytes
(sourcePtr, source.Length, destPtr, destination.Length);
87
bytesWritten = Encoding.UTF8.
GetBytes
(sourcePtr, source.Length, destPtr, destination.Length);
System.Console (1)
src\libraries\Common\src\System\Text\ConsoleEncoding.cs (1)
80
return _encoding.
GetBytes
(chars, charCount, bytes, byteCount);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (1)
71
return encoding.
GetBytes
(charsPtr, chars.Length, bytesPtr, bytes.Length);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (3)
656
int bytesReceived =
GetBytes
(pChar + index, count, pBytes, byteCount);
732
return
GetBytes
(charsPtr, chars.Length, bytesPtr, bytes.Length);
1194
_encoding.
GetBytes
(chars, charCount, bytes, byteCount);
src\System\String.CoreCLR.cs (1)
71
return encoding.
GetBytes
(pwzChar, Length, pbNativeBuffer, cbNativeBuffer);
src\System\StubHelpers.cs (1)
167
cbWritten = Encoding.UTF8.
GetBytes
(pwzChar, numChars, buffer, length);
System.Private.DataContractSerialization (2)
System\Xml\XmlStreamNodeWriter.cs (2)
384
return (int)(bytes - _bytes) + (_encoding ?? DataContractSerializer.ValidatingUTF8).
GetBytes
(chars, (int)(charsMax - chars), bytes, (int)(bytesMax - bytes));
388
return (_encoding ?? DataContractSerializer.ValidatingUTF8).
GetBytes
(chars, charCount, _bytes, buffer.Length - offset);