Add LengthPrefixedConnectionId support to QuicDataReader and Writer
This is currently only used in v99 NEW_CONNECTION_ID frames but will soon be used to parse the new connection ID invariants
gfe-relnote: n/a, protected by disabled v99 flag
PiperOrigin-RevId: 258684056
Change-Id: I666d150b9392e195a073272d2c5e79bd970d5862
diff --git a/quic/core/quic_data_writer.h b/quic/core/quic_data_writer.h
index d2d2b6b..c43d0ff 100644
--- a/quic/core/quic_data_writer.h
+++ b/quic/core/quic_data_writer.h
@@ -108,6 +108,9 @@
// Write connection ID to the payload.
bool WriteConnectionId(QuicConnectionId connection_id);
+ // Write 8-bit length followed by connection ID to the payload.
+ bool WriteLengthPrefixedConnectionId(QuicConnectionId connection_id);
+
// Write tag as a 32-bit unsigned integer to the payload. As tags are already
// converted to big endian (e.g., CHLO is 'C','H','L','O') in memory by TAG or
// MakeQuicTag and tags are written in byte order, so tags on the wire are