add async feature #1

Merged
b4tman merged 62 commits from async into master 2023-08-18 06:29:46 +00:00
Showing only changes of commit 9c4882fbbb - Show all commits

View File

@ -41,7 +41,7 @@ where
cur_buf_raw: Cursor<Vec<u8>>, cur_buf_raw: Cursor<Vec<u8>>,
table: Vec<LSize>, table: Vec<LSize>,
compress_lvl: i32, compress_lvl: i32,
_t: PhantomData<*const T>, _t: PhantomData<Arc<T>>,
} }
impl<T> Writer<T> impl<T> Writer<T>
@ -145,7 +145,7 @@ where
mmap: Mmap, mmap: Mmap,
count: usize, count: usize,
first_pos: LSize, first_pos: LSize,
_t: Option<Arc<T>>, // PhantomData replacement _t: PhantomData<Arc<T>>,
} }
impl<T> Reader<T> impl<T> Reader<T>
@ -166,7 +166,7 @@ where
mmap, mmap,
count, count,
first_pos, first_pos,
_t: None, _t: PhantomData,
}) })
} }