proto: Simplify WriteX() functions
proto: Simplify WriteX() functions

Signed-off-by: Stefan Hajnoczi <484520986196e4a799496429ce8a499eb6488adb@gmail.com>

stefanha/chunkymonkey,huin/chunkymonkey,huin/chunkymonkey