Guest User

Untitled

a guest
Jun 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. public static BufferBase operator +( BufferBase buffer, int offset )
  2. {
  3.     // avoid useless clones
  4.     if ( offset == 0 )
  5.         return buffer;
  6.  
  7.     var buf = (BufferBase)buffer.Clone();
  8.     buf.Ptr += offset;
  9.     return buf;
  10. }
Add Comment
Please, Sign In to add comment