Add ACK and NAK PDU abstractions #41

Merged
muellerr merged 19 commits from add-ack-nak-pdus into main 2023-12-01 15:33:36 +01:00
Showing only changes of commit e355de3f10 - Show all commits

View File

@ -338,12 +338,10 @@ impl<T: SegReqFromBytes> SegmentRequestIter<'_, T> {
return None;
}
let start_offset =
T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
let start_offset = T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
offset += size_of::<T>();
let end_offset =
T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
let end_offset = T::from_bytes(&self.seq_req_raw[offset..offset + size_of::<T>()]);
Some((start_offset, end_offset))
}
}