We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ecc76 commit e307fdeCopy full SHA for e307fde
quinn-proto/src/connection/transmit_buf.rs
@@ -145,6 +145,11 @@ impl<'a> TransmitBuf<'a> {
145
self.buf.limit(self.buf_capacity)
146
}
147
148
+ /// Returns the already written bytes in the buffer
149
+ pub(super) fn as_mut_slice(&mut self) -> &mut [u8] {
150
+ self.buf.as_mut_slice()
151
+ }
152
+
153
/// Returns the GSO segment size
154
///
155
/// This is also the maximum size datagrams are allowed to be. The first and last
@@ -190,9 +195,4 @@ impl<'a> TransmitBuf<'a> {
190
195
pub(super) fn len(&self) -> usize {
191
196
self.buf.len()
192
197
193
-
194
- /// Returns the already written bytes in the buffer
- pub(super) fn as_mut_slice(&mut self) -> &mut [u8] {
- self.buf.as_mut_slice()
- }
198
0 commit comments