We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc6575 commit 35fe7fcCopy full SHA for 35fe7fc
1 file changed
Asn1Parser/Asn1Utils.cs
@@ -48,6 +48,14 @@ public static Byte[] GetLengthBytes(Int32 payloadLength) {
48
return retValue;
49
}
50
/// <summary>
51
+ /// Generates tag length header for specified size.
52
+ /// </summary>
53
+ /// <param name="payloadLength">A projected tag length.</param>
54
+ /// <returns>Encoded tag length header. Return value do not contain tag and payload.</returns>
55
+ public static ReadOnlyMemory<Byte> GetLengthBytesAsMemory(Int32 payloadLength) {
56
+ return GetLengthBytes(payloadLength);
57
+ }
58
+ /// <summary>
59
/// Calculates the ASN.1 payload length from a given ASN.1 length header.
60
/// </summary>
61
/// <param name="asnHeader">A byte array that represents ASN.1 length header</param>
0 commit comments