daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Nov 17th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. template<typename T> void skipData( T * & data, size_t count ){
  2.   data += count;
  3. }
  4.  
  5. template<typename T> T readData( char * & data ){
  6.   T value = *( reinterpret_cast<T*>( data ) );
  7.   skipData( data, sizeof( T ) );
  8.   return value;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top