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;
 }
Beispiel #2
0
		public uint AddFieldSig (FieldSig fSig)
		{
			return AddSignature (fSig);
		}
Beispiel #3
0
		public override void VisitFieldSig (FieldSig field)
		{
			m_sigWriter.Write (field.CallingConvention);
			Write (field.CustomMods);
			Write (field.Type);
		}
Beispiel #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());
 }
Beispiel #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);
 }