@@ -24,7 +24,7 @@ using DoneCB = std::function<void(int)>;
24
24
25
25
// When data is sent over QUIC, we are required to retain it in memory
26
26
// 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
28
28
// and track until it is acknowledged. To understand the QuicBuffer
29
29
// object itself, it is important to understand how ngtcp2 and nghttp3
30
30
// handle data that is given to it to serialize into QUIC packets.
@@ -52,7 +52,7 @@ using DoneCB = std::function<void(int)>;
52
52
// QuicBuffer is further complicated by design quirks and limitations
53
53
// of the StreamBase API and how it interacts with the JavaScript side.
54
54
//
55
- // QuicBuffer is essentially a linked list of QuicBufferChunk instances.
55
+ // QuicBuffer is a linked list of QuicBufferChunk instances.
56
56
// A single QuicBufferChunk wraps a single non-zero-length uv_buf_t.
57
57
// When the QuicBufferChunk is created, we capture the total length
58
58
// of the buffer and the total number of bytes remaining to be sent.
@@ -79,7 +79,7 @@ using DoneCB = std::function<void(int)>;
79
79
// along with a callback to be called when the data has
80
80
// been consumed.
81
81
//
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
83
83
// remaining-to-be-read-length (remaining()). The former tracks the number
84
84
// of bytes that have yet to be acknowledged by the QUIC peer. Once the
85
85
// remaining-to-be-acknowledged length reaches zero, the done callback
@@ -88,7 +88,7 @@ using DoneCB = std::function<void(int)>;
88
88
// serialized into QUIC packets and sent.
89
89
// The remaining-to-be-acknowledged length is adjusted using consume(),
90
90
// while the remaining-to-be-ead length is adjusted using seek().
91
- class QuicBufferChunk : public MemoryRetainer {
91
+ class QuicBufferChunk final : public MemoryRetainer {
92
92
public:
93
93
// Default non-op done handler.
94
94
static void default_done (int status) {}
@@ -149,8 +149,8 @@ class QuicBufferChunk : public MemoryRetainer {
149
149
friend class QuicBuffer ;
150
150
};
151
151
152
- class QuicBuffer : public bob ::SourceImpl<ngtcp2_vec>,
153
- public MemoryRetainer {
152
+ class QuicBuffer final : public bob::SourceImpl<ngtcp2_vec>,
153
+ public MemoryRetainer {
154
154
public:
155
155
QuicBuffer () = default ;
156
156
0 commit comments