Skip to content

Commit

Permalink
feat: Add baisc write op
Browse files Browse the repository at this point in the history
Signed-off-by: Lzzzt <[email protected]>
  • Loading branch information
Lzzzzzt committed Oct 10, 2024
1 parent 00ae946 commit 84e7d0e
Show file tree
Hide file tree
Showing 9 changed files with 644 additions and 465 deletions.
Empty file modified .github/workflows/ci.sh
100755 → 100644
Empty file.
3 changes: 1 addition & 2 deletions monoio/src/driver/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::driver;

pub(crate) mod close;
pub(crate) mod read;
pub(crate) mod write;

mod accept;
mod connect;
Expand All @@ -17,8 +18,6 @@ mod open;
mod poll;
mod recv;
mod send;
mod write;

#[cfg(unix)]
mod statx;

Expand Down
4 changes: 4 additions & 0 deletions monoio/src/driver/op/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ read_result! {
Read<T: IoBufMut> { buf },
ReadAt<T: IoBufMut> { buf },
ReadVec<T: IoVecBufMut> { buf_vec },
}

#[cfg(not(windows))]
read_result! {
ReadVecAt<T: IoVecBufMut> { buf_vec },
}

Expand Down
Loading

0 comments on commit 84e7d0e

Please sign in to comment.