mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-30 00:23:24 +00:00
Improve flexibility of DmaStreamSlice
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
29ebfa3934
commit
d37da228ab
@ -19,7 +19,7 @@ impl DmaBuf for DmaStream {
|
||||
}
|
||||
}
|
||||
|
||||
impl DmaBuf for DmaStreamSlice<'_> {
|
||||
impl<Dma: AsRef<DmaStream>> DmaBuf for DmaStreamSlice<Dma> {
|
||||
fn len(&self) -> usize {
|
||||
self.nbytes()
|
||||
}
|
||||
|
Reference in New Issue
Block a user