Home
last modified time | relevance | path

Searched refs:SeekFrom (Results 1 – 14 of 14) sorted by relevance

/third_party/rust/crates/rustix/tests/io/
Dread_write.rs73 use rustix::io::{readv, writev, SeekFrom}; in test_readwrite_v()
87 seek(&foo, SeekFrom::Start(0)).unwrap(); in test_readwrite_v()
100 use std::io::SeekFrom; in test_readwrite()
114 seek(&foo, SeekFrom::Start(0)).unwrap(); in test_readwrite()
154 use rustix::io::{preadv2, pwritev2, writev, ReadWriteFlags, SeekFrom}; in test_pwritev2()
167 seek(&foo, SeekFrom::Start(0)).unwrap(); in test_pwritev2()
176 assert_eq!(seek(&foo, SeekFrom::Current(0)).unwrap(), 0); in test_pwritev2()
180 assert_eq!(seek(&foo, SeekFrom::Current(0)).unwrap(), 15); in test_pwritev2()
182 seek(&foo, SeekFrom::Start(0)).unwrap(); in test_pwritev2()
Dpipe.rs6 use std::io::{Read, Seek, SeekFrom, Write}; in test_splice_cursor()
15 src.seek(SeekFrom::Start(6)).unwrap(); in test_splice_cursor()
21 dest.seek(SeekFrom::Start(0)).unwrap(); in test_splice_cursor()
/third_party/rust/crates/rustix/tests/fs/
Dinvalid_offset.rs12 use rustix::io::SeekFrom;
27 seek(&file, SeekFrom::Start(u64::MAX)).unwrap_err(); in invalid_offset_seek()
28 seek(&file, SeekFrom::Start(i64::MAX as u64 + 1)).unwrap_err(); in invalid_offset_seek()
29 seek(&file, SeekFrom::End(-1)).unwrap_err(); in invalid_offset_seek()
30 seek(&file, SeekFrom::End(i64::MIN)).unwrap_err(); in invalid_offset_seek()
31 seek(&file, SeekFrom::Current(-1)).unwrap_err(); in invalid_offset_seek()
32 seek(&file, SeekFrom::Current(i64::MIN)).unwrap_err(); in invalid_offset_seek()
Dreaddir.rs60 use std::io::{Seek, SeekFrom}; in test_raw_dir()
90 dirfd.seek(SeekFrom::Start(0)).unwrap(); in test_raw_dir()
100 dirfd.seek(SeekFrom::Start(0)).unwrap(); in test_raw_dir()
/third_party/rust/crates/clang-sys/build/
Ddynamic.rs5 use std::io::{self, Error, ErrorKind, Read, Seek, SeekFrom};
32 let start = SeekFrom::Start(0x3C); in parse_pe_header()
38 file.seek(SeekFrom::Start(offset as u64))?; in parse_pe_header()
46 file.seek(SeekFrom::Current(20))?; in parse_pe_header()
/third_party/rust/crates/clap/clap_lex/src/
Dlib.rs113 pub use std::io::SeekFrom;
221 pub fn seek(&self, cursor: &mut ArgCursor, pos: SeekFrom) { in seek() argument
223 SeekFrom::Start(pos) => pos, in seek()
224 SeekFrom::End(pos) => (self.items.len() as i64).saturating_add(pos).max(0) as u64, in seek()
225 SeekFrom::Current(pos) => (cursor.cursor as i64).saturating_add(pos).max(0) as u64, in seek()
/third_party/rust/crates/rustix/src/io/
Dmod.rs93 pub use seek_from::SeekFrom;
95 pub use std::io::SeekFrom;
Dseek_from.rs10 pub enum SeekFrom { enum
/third_party/rust/crates/rustix/src/fs/
Dfd.rs5 use crate::io::SeekFrom;
91 pub fn seek<Fd: AsFd>(fd: Fd, pos: SeekFrom) -> io::Result<u64> { in seek()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs31 use crate::io::{self, SeekFrom};
208 pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result<u64> { in seek()
210 SeekFrom::Start(pos) => { in seek()
215 SeekFrom::End(offset) => (SEEK_END, offset), in seek()
216 SeekFrom::Current(offset) => (SEEK_CUR, offset), in seek()
/third_party/rust/crates/either/src/
Dlib.rs38 use std::io::{self, BufRead, Read, Seek, SeekFrom, Write};
1123 fn seek(&mut self, pos: SeekFrom) -> io::Result<u64> { in seek()
1387 reader.seek(io::SeekFrom::Start(0)).unwrap(); in seek()
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs127 use crate::io::{self, SeekFrom};
894 pub(crate) fn seek(fd: BorrowedFd<'_>, pos: SeekFrom) -> io::Result<u64> { in seek()
896 SeekFrom::Start(pos) => { in seek()
901 SeekFrom::End(offset) => (c::SEEK_END, offset), in seek()
902 SeekFrom::Current(offset) => (c::SEEK_CUR, offset), in seek()
/third_party/rust/crates/clap/clap_complete/src/
Ddynamic.rs305 clap_lex::SeekFrom::Start(arg_index as u64), in complete()
/third_party/rust/crates/clap/src/parser/
Dparser.rs236 .seek(&mut args_cursor, clap_lex::SeekFrom::Current(-1)); in get_matches_with()