Define Gif_FullWriteRecord to write to a memory buffer