mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-22 16:02:34 +03:00
Introduce a Cursor typealias
Summary: See title Reviewed By: kvtsoy Differential Revision: D73474979 fbshipit-source-id: 7048d75e79e619917b226bfc2b90bcd2248e44eb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
302b9599cf
commit
a934b46f49
@@ -826,7 +826,7 @@ folly::Expected<folly::Unit, QuicError> onServerReadDataFromOpen(
|
||||
bool firstPacketFromPeer = false;
|
||||
if (!conn.readCodec) {
|
||||
firstPacketFromPeer = true;
|
||||
folly::io::Cursor cursor(readData.udpPacket.buf.front());
|
||||
Cursor cursor(readData.udpPacket.buf.front());
|
||||
auto initialByte = cursor.readBE<uint8_t>();
|
||||
auto parsedLongHeader = parseLongHeaderInvariant(initialByte, cursor);
|
||||
if (!parsedLongHeader) {
|
||||
|
||||
Reference in New Issue
Block a user