code: func (h *ExtendedHeader) Write(b *bytes.Buffer, ver protocol.VersionNumber) error {
  	if h.IsLongHeader {
  		return h.writeLongHeader(b, ver)
  	}
  	return h.writeShortHeader(b, ver)
  }
docs: // Write writes the Header.