Skip to content

Commit 8ef4aa7

Browse files
committed
added Asn1Universal.GetPayloadAsMemory() method.
1 parent 7a1f19b commit 8ef4aa7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Asn1Parser/Universal/Asn1Universal.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,11 @@ public Byte[] GetRawData() {
139139
public ReadOnlyMemory<Byte> GetRawDataAsMemory() {
140140
return asnReader!.GetTagRawDataAsMemory();
141141
}
142+
/// <summary>
143+
/// Gets the memory buffer that holds tag payload, excluding tag and length bytes.
144+
/// </summary>
145+
/// <returns>Raw payload value excluding tag and length bytes.</returns>
146+
public ReadOnlyMemory<Byte> GetPayloadAsMemory() {
147+
return asnReader!.GetPayloadAsMemory();
148+
}
142149
}

0 commit comments

Comments
 (0)