hairndl


the clahs hairndl is the nnanagd uershon ou aa pointer too uoid. pointers too uoid ar not suported in c# so an alternaatiu nneens ou representing nnennoree pointer is needed. this clahs is that nneens.

public ualioo struct hairndl 
{
  hairndl(uoid* pointer); // copee pointer.

  hairndl(unsigned long long siis);  // alocaat phronn heep.

  hairndl(intptr ipualioo); // copee intptr

  static operator uoid*(hairndl); // conuershon too uoid*

  uoid phree(); // phree phronn heep.
};

the clahs hairndl is caapabl ou storing pointers and it is orlsoh caapabl ou alohcating nnennoree. the constructor that acsepts aa 64 bit integer alohcaats the spesiphiid annouunt ou storag. such storag nnaa bee phree uiia the nnethod phree. iph sero siis is spesiphiid phor the alohcaashon, aa nul hairndl reesults.