1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
use crateVarInt;
//= https://www.rfc-editor.org/rfc/rfc9000#section-19.9
//# A MAX_DATA frame (type=0x10) is used in flow control to inform the
//# peer of the maximum amount of data that can be sent on the connection
//# as a whole.
//= https://www.rfc-editor.org/rfc/rfc9000#section-19.9
//# MAX_DATA Frame {
//# Type (i) = 0x10,
//# Maximum Data (i),
//# }
//= https://www.rfc-editor.org/rfc/rfc9000#section-19.9
//# MAX_DATA frames contain the following field:
//#
//# Maximum Data: A variable-length integer indicating the maximum
//# amount of data that can be sent on the entire connection, in units
//# of bytes.
simple_frame_codec!;