Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetString() [2/4]

unsafe override string System.Text.Latin1Encoding.GetString ( byte[] bytes)
inlinevirtualinherited

Reimplemented from System.Text.Encoding.

Definition at line 389 of file Latin1Encoding.cs.

390 {
391 if (bytes == null)
392 {
393 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.bytes);
394 }
395 return string.Create(bytes.Length, (this, bytes), delegate(Span<char> chars, (Latin1Encoding encoding, byte[] bytes) args)
396 {
397 fixed (byte* pBytes = args.bytes)
398 {
399 fixed (char* pChars = chars)
400 {
401 args.encoding.GetCharsCommon(pBytes, args.bytes.Length, pChars, chars.Length);
402 }
403 }
404 });
405 }

References System.bytes, System.chars, and System.ThrowHelper.ThrowArgumentNullException().