(context.Context, string, ...any)
| 104 | typ := buf[i] |
| 105 | length := int(buf[i+1])<<24 | int(buf[i+2])<<16 | int(buf[i+3])<<8 | int(buf[i+4]) |
| 106 | if length < 4 || i+1+length > len(buf) { |
| 107 | t.Fatalf("malformed wire message at offset %d (length %d, remaining %d)", i, length, len(buf)-i) |
| 108 | } |
| 109 | msgs = append(msgs, wireMsg{typ: typ, body: buf[i+5 : i+1+length]}) |
| 110 | i += 1 + length |
| 111 | } |
| 112 | return msgs |
nothing calls this directly
no outgoing calls
no test coverage detected