Read and write snippets for structs and pointers.