Exemple #1
0
 internal static byte[] Write(ISignatureWriterHelper helper, CallingConventionSig sig, DataWriterContext context)
 {
     using (var writer = new SignatureWriter(helper, context)) {
         writer.Write(sig);
         return(writer.GetResult());
     }
 }
Exemple #2
0
 internal static byte[] Write(ISignatureWriterHelper helper, TypeSig typeSig, DataWriterContext context)
 {
     using (var writer = new SignatureWriter(helper, context)) {
         writer.Write(typeSig);
         return(writer.GetResult());
     }
 }
Exemple #3
0
 /// <summary>
 /// Write a <see cref="CallingConventionSig"/> signature
 /// </summary>
 /// <param name="helper">Helper</param>
 /// <param name="sig">The signature</param>
 /// <returns>The signature as a byte array</returns>
 public static byte[] Write(ISignatureWriterHelper helper, CallingConventionSig sig)
 {
     using (var writer = new SignatureWriter(helper)) {
         writer.Write(sig);
         return(writer.GetResult());
     }
 }
Exemple #4
0
 /// <summary>
 /// Write a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Helper</param>
 /// <param name="typeSig">The type</param>
 /// <returns>The signature as a byte array</returns>
 public static byte[] Write(ISignatureWriterHelper helper, TypeSig typeSig)
 {
     using (var writer = new SignatureWriter(helper)) {
         writer.Write(typeSig);
         return(writer.GetResult());
     }
 }