fix dequeue_many_back
This commit is contained in:
parent
238b00348e
commit
cb908c8198
@ -146,7 +146,7 @@ impl<T: FromBytes + FromZeroes + AsBytes + Unaligned + Clone + Copy> FilePointer
|
|||||||
n: u64,
|
n: u64,
|
||||||
) -> Option<(Self, Vec<T>)> {
|
) -> Option<(Self, Vec<T>)> {
|
||||||
let mut res = Vec::with_capacity(n.try_into().unwrap());
|
let mut res = Vec::with_capacity(n.try_into().unwrap());
|
||||||
self.dequeue_many_inner(transaction, n, |t| res.push(t))
|
self.dequeue_many_back_inner(transaction, n, |t| res.push(t))
|
||||||
.map(|ptr| {
|
.map(|ptr| {
|
||||||
res.reverse();
|
res.reverse();
|
||||||
(ptr, res)
|
(ptr, res)
|
||||||
|
Loading…
Reference in New Issue
Block a user