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

◆ TryReadCharacterStringBytesCore()

static bool System.Formats.Asn1.AsnDecoder.TryReadCharacterStringBytesCore ( ReadOnlySpan< byte > source,
AsnEncodingRules ruleSet,
Asn1Tag expectedTag,
UniversalTagNumber universalTagNumber,
Span< byte > destination,
out int bytesConsumed,
out int bytesWritten )
inlinestaticprivate

Definition at line 1663 of file AsnDecoder.cs.

1664 {
1666 {
1667 if (contents.Length > destination.Length)
1668 {
1669 bytesWritten = 0;
1670 bytesConsumed = 0;
1671 return false;
1672 }
1673 contents.CopyTo(destination);
1674 bytesWritten = contents.Length;
1676 return true;
1677 }
1678 int bytesRead;
1680 if (flag)
1681 {
1683 }
1684 else
1685 {
1686 bytesConsumed = 0;
1687 }
1688 return flag;
1689 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
static bool TryCopyConstructedOctetStringContents(ReadOnlySpan< byte > source, AsnEncodingRules ruleSet, Span< byte > dest, bool isIndefinite, out int bytesRead, out int bytesWritten)
static ReadOnlySpan< byte > Slice(ReadOnlySpan< byte > source, int offset, int length)
static bool TryReadPrimitiveOctetStringCore(ReadOnlySpan< byte > source, AsnEncodingRules ruleSet, Asn1Tag expectedTag, UniversalTagNumber universalTagNumber, out int? contentLength, out int headerLength, out ReadOnlySpan< byte > contents, out int bytesConsumed)

References System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.destination, System.Formats.Asn1.AsnDecoder.Slice(), System.source, System.Formats.Asn1.AsnDecoder.TryCopyConstructedOctetStringContents(), and System.Formats.Asn1.AsnDecoder.TryReadPrimitiveOctetStringCore().

Referenced by System.Formats.Asn1.AsnDecoder.TryReadCharacterStringBytes().