(fr *FrameHeader)
| 34 | } |
| 35 | |
| 36 | func (wu *WindowUpdate) Deserialize(fr *FrameHeader) error { |
| 37 | if len(fr.payload) < 4 { |
| 38 | wu.increment = 0 |
| 39 | return ErrMissingBytes |
| 40 | } |
| 41 | |
| 42 | wu.increment = int(http2utils.BytesToUint32(fr.payload) & (1<<31 - 1)) |
| 43 | |
| 44 | return nil |
| 45 | } |
| 46 | |
| 47 | func (wu *WindowUpdate) Serialize(fr *FrameHeader) { |
| 48 | fr.payload = http2utils.AppendUint32Bytes( |
nothing calls this directly
no test coverage detected