func (s *Span) write(w *typed.WriteBuffer) error { w.WriteUint64(s.traceID) w.WriteUint64(s.parentID) w.WriteUint64(s.spanID) w.WriteByte(s.flags) return w.Err() }
func (ch callHeaders) write(w *typed.WriteBuffer) { w.WriteByte(byte(len(ch))) for k, v := range ch { w.WriteLen8String(k.String()) w.WriteLen8String(v) } }
func (fh *FrameHeader) write(w *typed.WriteBuffer) error { w.WriteUint16(fh.size) w.WriteByte(byte(fh.messageType)) w.WriteByte(fh.reserved1) w.WriteUint32(fh.ID) w.WriteBytes(fh.reserved[:]) return w.Err() }
func (m *errorMessage) write(w *typed.WriteBuffer) error { w.WriteByte(byte(m.errCode)) w.WriteUint32(m.id) w.WriteLen16String(m.message) return w.Err() }
func (m *callRes) write(w *typed.WriteBuffer) error { w.WriteByte(byte(m.ResponseCode)) m.Tracing.write(w) m.Headers.write(w) return w.Err() }
func (m *errorMessage) write(w *typed.WriteBuffer) error { w.WriteByte(byte(m.errCode)) m.tracing.write(w) w.WriteLen16String(m.message) return w.Err() }