Add more WriteTo and ReadFrom APIs.