func (s *Span) read(r *typed.ReadBuffer) error { s.traceID = r.ReadUint64() s.parentID = r.ReadUint64() s.spanID = r.ReadUint64() s.flags = r.ReadSingleByte() return r.Err() }
func (m *callRes) read(r *typed.ReadBuffer) error { m.ResponseCode = ResponseCode(r.ReadSingleByte()) m.Tracing.read(r) m.Headers = transportHeaders{} m.Headers.read(r) return r.Err() }
func (fh *FrameHeader) read(r *typed.ReadBuffer) error { fh.size = r.ReadUint16() fh.messageType = messageType(r.ReadSingleByte()) fh.reserved1 = r.ReadSingleByte() fh.ID = r.ReadUint32() r.ReadBytes(len(fh.reserved)) return r.Err() }
func (ch transportHeaders) read(r *typed.ReadBuffer) { nh := r.ReadSingleByte() for i := 0; i < int(nh); i++ { k := r.ReadLen8String() v := r.ReadLen8String() ch[TransportHeaderName(k)] = v } }
func (m *errorMessage) read(r *typed.ReadBuffer) error { m.errCode = SystemErrCode(r.ReadSingleByte()) m.tracing.read(r) m.message = r.ReadLen16String() return r.Err() }