MCPcopy
hub / github.com/grpc/grpc-go / outPayload

Function outPayload

rpc_util.go:897–906  ·  view source on GitHub ↗
(client bool, msg any, dataLength, payloadLength int, t time.Time)

Source from the content-addressed store, hash-verified

895}
896
897func outPayload(client bool, msg any, dataLength, payloadLength int, t time.Time) *stats.OutPayload {
898 return &stats.OutPayload{
899 Client: client,
900 Payload: msg,
901 Length: dataLength,
902 WireLength: payloadLength + headerLen,
903 CompressedLength: payloadLength,
904 SentTime: t,
905 }
906}
907
908func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool, isServer bool) *status.Status {
909 switch pf {

Callers 3

sendResponseMethod · 0.85
sendMsgMethod · 0.85
SendMsgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected