示例#1
0
 public FieldSig GetFieldSig(uint index)
 {
     FieldSig f = m_signatures [index] as FieldSig;
     if (f == null) {
         f = new FieldSig (index);
         f.Accept (this);
         m_signatures [index] = f;
     }
     return f;
 }
示例#2
0
		public uint AddFieldSig (FieldSig fSig)
		{
			return AddSignature (fSig);
		}
示例#3
0
		public override void VisitFieldSig (FieldSig field)
		{
			m_sigWriter.Write (field.CallingConvention);
			Write (field.CustomMods);
			Write (field.Type);
		}
示例#4
0
		public byte [] CompressFieldSig (FieldSig field)
		{
			m_sigWriter.Empty ();
			VisitFieldSig (field);
			return m_sigWriter.ToArray ();
		}
 public FieldSig GetFieldSig(FieldReference field)
 {
     FieldSig sig = new FieldSig ();
     sig.CallingConvention |= 0x6;
     sig.Field = true;
     sig.CustomMods = GetCustomMods (field.FieldType);
     sig.Type = GetSigType (field.FieldType);
     return sig;
 }
 public uint AddFieldSig(FieldSig fSig)
 {
     return(AddSignature(fSig));
 }
 public override void VisitFieldSig(FieldSig field)
 {
     m_sigWriter.Write(field.CallingConvention);
     Write(field.CustomMods);
     Write(field.Type);
 }
 public byte [] CompressFieldSig(FieldSig field)
 {
     m_sigWriter.Empty();
     VisitFieldSig(field);
     return(m_sigWriter.ToArray());
 }
示例#9
0
 public override void VisitFieldSig(FieldSig field)
 {
     int start;
     Utilities.ReadCompressedInteger (m_blobData, (int) field.BlobIndex, out start);
     field.CallingConvention = m_blobData [start];
     field.Field = (field.CallingConvention & 0x6) != 0;
     field.CustomMods = ReadCustomMods (m_blobData, start + 1, out start);
     field.Type = ReadType (m_blobData, start, out start);
 }