(fr *FrameHeader)
| 38 | } |
| 39 | |
| 40 | func (rst *RstStream) Deserialize(fr *FrameHeader) error { |
| 41 | if len(fr.payload) < 4 { |
| 42 | return ErrMissingBytes |
| 43 | } |
| 44 | |
| 45 | rst.code = ErrorCode(http2utils.BytesToUint32(fr.payload)) |
| 46 | |
| 47 | return nil |
| 48 | } |
| 49 | |
| 50 | func (rst *RstStream) Serialize(fr *FrameHeader) { |
| 51 | fr.payload = http2utils.AppendUint32Bytes(fr.payload[:0], uint32(rst.code)) |
nothing calls this directly
no test coverage detected