write_struct
