Commit fbc2468
committed
Remove use of absolute offsets
This completely removes the need for
TransmitBuilder::datagram_start_offset and ::datagram_max_offset, now
that everything can work with the buffer returned by
TransmitBuilder::datagram_mut(). It also removes a now unused field
in the packet builder since it no longer needs to keep track of the
start offset of the datagram: it is always 0 now.1 parent 15f631d commit fbc2468
File tree
3 files changed
+7
-26
lines changed- quinn-proto/src/connection
3 files changed
+7
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
651 | | - | |
| 650 | + | |
652 | 651 | | |
653 | 652 | | |
654 | 653 | | |
| |||
712 | 711 | | |
713 | 712 | | |
714 | 713 | | |
715 | | - | |
| 714 | + | |
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
| |||
867 | 866 | | |
868 | 867 | | |
869 | 868 | | |
870 | | - | |
871 | | - | |
| 869 | + | |
872 | 870 | | |
873 | 871 | | |
874 | 872 | | |
| |||
911 | 909 | | |
912 | 910 | | |
913 | 911 | | |
914 | | - | |
| 912 | + | |
915 | 913 | | |
916 | 914 | | |
917 | 915 | | |
| |||
1003 | 1001 | | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | | - | |
| 1004 | + | |
1007 | 1005 | | |
1008 | 1006 | | |
1009 | 1007 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 188 | + | |
204 | 189 | | |
205 | 190 | | |
206 | 191 | | |
207 | 192 | | |
208 | | - | |
| 193 | + | |
209 | 194 | | |
210 | 195 | | |
211 | 196 | | |
| |||
0 commit comments