code: int writeAttr(Name attrName) {
          databuf.appendChar(pool.put(attrName));
          databuf.appendInt(0);
          return databuf.length;
      }
docs: Write header for an attribute to data buffer and return
  position past attribute length index.