func (m *callReq) write(w *typed.WriteBuffer) error { w.WriteUint32(uint32(m.TimeToLive.Seconds() * 1000)) m.Tracing.write(w) w.WriteLen8String(m.Service) m.Headers.write(w) return w.Err() }
func (fh *FrameHeader) write(w *typed.WriteBuffer) error { w.WriteUint16(fh.size) w.WriteSingleByte(byte(fh.messageType)) w.WriteSingleByte(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() }