proxygen
HTTP2FramerTest.h File Reference

Go to the source code of this file.

Functions

void writeFrameHeaderManual (folly::IOBufQueue &queue, uint32_t length, uint8_t type, uint8_t flags, uint32_t stream)
 

Function Documentation

void writeFrameHeaderManual ( folly::IOBufQueue queue,
uint32_t  length,
uint8_t  type,
uint8_t  flags,
uint32_t  stream 
)

Definition at line 27 of file HTTP2FramerTest.cpp.

References proxygen::http2::kFrameHeaderSize, stream, type, uint32_t, uint8_t, and folly::io::detail::Writable< Derived >::writeBE().

Referenced by TEST_F().

28  {
29  QueueAppender appender(&queue, kFrameHeaderSize);
30  uint32_t lengthAndType = length << 8 | type;
31  appender.writeBE<uint32_t>(lengthAndType);
32  appender.writeBE<uint8_t>(flags);
33  appender.writeBE<uint32_t>(stream);
34 }
flags
Definition: http_parser.h:127
const uint32_t kFrameHeaderSize
StreamCodecFactory stream
PskType type