Save and Restore methods added to buffer

Change-Id: I534ba77d08b2502ae08af375f7de583457b07539
Signed-off-by: Parth Satra <pasatra@ncsu.edu>