Add VDLIsZero, and use it in VDLWrite.

This CL adds the VDLIsZero method, which is used to check whether
the method receiver is the VDL zero value.  This is used in
codegen to make zero struct field checking both simpler and faster.

Also simplified both VDLRead and VDLWrite codegen, to make things
more consistent and easier to understand.

MultiPart: 5/5
Change-Id: I5be710fe0dbdba2eccea626e58f17e48c8dcd726
1 file changed
tree: 40f8279574775a8f75d522031d1492ad7d3d7b38
  1. go/
  2. .gitignore
  3. AUTHORS
  4. CONTRIBUTING.md
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. VERSION