Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 6th, 2011  |  syntax: None  |  size: 0.26 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* Use this type and macro to convert a pointer from the
  2.  * skin buffer to a useable pointer */
  3. typedef skinoffset uint32_t
  4. #define SKINOFFSETTOPTR(base, offset, type) ((type)&base[offset])
  5. #define PTRTOSKINOFFSET(base, pointer) ((void*)pointer-(void*)base)
  6.  
  7.  
clone this paste RAW Paste Data