diff --git a/inout/src/reserved.rs b/inout/src/reserved.rs index 05ecf586..ee1be933 100644 --- a/inout/src/reserved.rs +++ b/inout/src/reserved.rs @@ -91,7 +91,7 @@ impl InOutBufReserved<'_, '_, T> { /// Get output buffer length. #[inline(always)] pub fn get_out_len(&self) -> usize { - self.in_len + self.out_len } /// Split buffer into `InOutBuf` with input length and mutable slice pointing to