Пример #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 ();
		}
Пример #5
0
 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;
 }
Пример #6
0
 public uint AddFieldSig(FieldSig fSig)
 {
     return(AddSignature(fSig));
 }
Пример #7
0
 public override void VisitFieldSig(FieldSig field)
 {
     m_sigWriter.Write(field.CallingConvention);
     Write(field.CustomMods);
     Write(field.Type);
 }
Пример #8
0
 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);
 }