code: func NewLogEntryEncoder(w io.Writer) LogEntryEncoder {
  	return &logEntryEncoder{
  		w:   w,
  		buf: make([]byte, 1024),
  	}
  }
docs: // NewLogEntryEncoder creates a protobuf stream encoder for log entries.
  // This is used to write out  log entries to a stream.