Advertisement
Guest User

Untitled

a guest
May 24th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.42 KB | None | 0 0
  1. proc serialize_row*(source, destination: pointer) =
  2.     if isNil(destination):
  3.         echo "DEST IS 0"
  4.     if isNil(source):
  5.         echo "ROW IS NIL"
  6.  
  7.     echo destination
  8.     echo source
  9.  
  10.     copyMem(destination + ID_OFFSET, source + ID_OFFSET, ID_SIZE)
  11.     copyMem(destination + USERNAME_OFFSET, source + USERNAME_OFFSET, USERNAME_SIZE)
  12.     copyMem(destination + EMAIL_OFFSET, source + EMAIL_OFFSET, EMAIL_SIZE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement