1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-07-29 03:41:11 +03:00

Codec writing/reading of stream group ids

Summary: Add writing and reading of stream group ids

Reviewed By: mjoras

Differential Revision: D36415929

fbshipit-source-id: 650bb8d6f81b2014741a517b165b4d27b7b6c0fe
This commit is contained in:
Konstantin Tsoy
2022-06-03 15:47:17 -07:00
committed by Facebook GitHub Bot
parent 3445442000
commit 4faaa83642
12 changed files with 200 additions and 19 deletions

View File

@ -358,7 +358,8 @@ bool StreamFrameScheduler::writeStreamLossBuffers(
bufferLen, // writeBufferLen -- only the len of the single buffer.
bufferLen, // flowControlLen -- not relevant, already flow controlled.
buffer->eof,
folly::none /* skipLenHint */);
folly::none /* skipLenHint */,
stream.groupId);
if (dataLen) {
wroteStreamFrame = true;
writeStreamFrameData(builder, buffer->data, *dataLen);
@ -531,7 +532,8 @@ bool StreamFrameScheduler::writeStreamFrame(
bufferLen,
flowControlLen,
canWriteFin,
folly::none /* skipLenHint */);
folly::none /* skipLenHint */,
stream.groupId);
if (!dataLen) {
return false;
}