@@ -24,7 +24,7 @@ using DoneCB = std::function<void(int)>;
2424
2525// When data is sent over QUIC, we are required to retain it in memory
2626// until we receive an acknowledgement that it has been successfully
27- // acknowledged . The QuicBuffer object is what we use to handle that
27+ // received . The QuicBuffer object is what we use to handle that
2828// and track until it is acknowledged. To understand the QuicBuffer
2929// object itself, it is important to understand how ngtcp2 and nghttp3
3030// handle data that is given to it to serialize into QUIC packets.
@@ -52,7 +52,7 @@ using DoneCB = std::function<void(int)>;
5252// QuicBuffer is further complicated by design quirks and limitations
5353// of the StreamBase API and how it interacts with the JavaScript side.
5454//
55- // QuicBuffer is essentially a linked list of QuicBufferChunk instances.
55+ // QuicBuffer is a linked list of QuicBufferChunk instances.
5656// A single QuicBufferChunk wraps a single non-zero-length uv_buf_t.
5757// When the QuicBufferChunk is created, we capture the total length
5858// of the buffer and the total number of bytes remaining to be sent.
@@ -79,7 +79,7 @@ using DoneCB = std::function<void(int)>;
7979// along with a callback to be called when the data has
8080// been consumed.
8181//
82- // Any given chunk as a remaining-to-be-acknowledged length (length()) and a
82+ // Any given chunk has a remaining-to-be-acknowledged length (length()) and a
8383// remaining-to-be-read-length (remaining()). The former tracks the number
8484// of bytes that have yet to be acknowledged by the QUIC peer. Once the
8585// remaining-to-be-acknowledged length reaches zero, the done callback
@@ -88,7 +88,7 @@ using DoneCB = std::function<void(int)>;
8888// serialized into QUIC packets and sent.
8989// The remaining-to-be-acknowledged length is adjusted using consume(),
9090// while the remaining-to-be-ead length is adjusted using seek().
91- class QuicBufferChunk : public MemoryRetainer {
91+ class QuicBufferChunk final : public MemoryRetainer {
9292 public:
9393 // Default non-op done handler.
9494 static void default_done (int status) {}
@@ -149,8 +149,8 @@ class QuicBufferChunk : public MemoryRetainer {
149149 friend class QuicBuffer ;
150150};
151151
152- class QuicBuffer : public bob ::SourceImpl<ngtcp2_vec>,
153- public MemoryRetainer {
152+ class QuicBuffer final : public bob::SourceImpl<ngtcp2_vec>,
153+ public MemoryRetainer {
154154 public:
155155 QuicBuffer () = default ;
156156
0 commit comments