(ftype FrameType, flags Flags, streamID uint32)
| 345 | } |
| 346 | |
| 347 | func (h2f *Framer) startWrite(ftype FrameType, flags Flags, streamID uint32) { |
| 348 | // Write the FrameHeader. |
| 349 | h2f.wbuf = append(h2f.wbuf[:0], |
| 350 | 0, // 3 bytes of length, filled in in endWrite |
| 351 | 0, |
| 352 | 0, |
| 353 | byte(ftype), |
| 354 | byte(flags), |
| 355 | byte(streamID>>24), |
| 356 | byte(streamID>>16), |
| 357 | byte(streamID>>8), |
| 358 | byte(streamID)) |
| 359 | } |
| 360 | |
| 361 | func (h2f *Framer) endWrite() error { |
| 362 | // Now that we know the final size, fill in the FrameHeader in |
no outgoing calls
no test coverage detected