Exemple #1
0
 internal PointerWrapper(IntPtr ptr, PtrKind kind)
 {
     if (PointerWrapper._ptrRegister.ContainsKey(ptr))
     {
         throw new SwinGameException("Error managing resources.");
     }
     PointerWrapper._ptrRegister[ptr] = this;
     Pointer = ptr;
     _Kind   = kind;
 }
Exemple #2
0
 internal NoFreePointerWrapper(IntPtr ptr, PtrKind kind) : base(ptr, kind)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Tptr"/> class.
 /// </summary>
 /// <param name="ptrKind">The kind of pointer.</param>
 /// <param name="type">The type associated with the underlying expression.</param>
 public Tptr(PtrKind ptrKind, Typ type)
 {
     Kind = ptrKind;
     Type = type;
 }