PRL-PRG / UFOs

User Fault Objects: making vectors lazy and forgetful.
12 stars 3 forks source link

Translate header pointer to UFO object #8

Closed kondziu closed 4 years ago

kondziu commented 4 years ago
  1. When I create a UFO object I don't give R a pointer to that object, but instead I give it ufGetHeaderPointer(object).
  2. When R asks me to free an object, therefore, it doesn't give me a pointer to the object, but it gives me ufGetHeaderPointer(object).
  3. When I want to free the object I have to call ufDestroyObject(ufObject_t object_p).

I need a function that translates from header pointer to their respective ufObject_ts.