• Home
  • Raw
  • Download

Lines Matching refs:seek_hole

17     fn seek_hole(&mut self, offset: u64) -> Result<Option<u64>>;  in seek_hole()  method
45 fn seek_hole(&mut self, offset: u64) -> Result<Option<u64>> { in seek_hole() method
110 fn seek_hole() { in seek_hole() function
114 assert_eq!(file.seek_hole(0).unwrap(), None); in seek_hole()
119 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole()
121 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole()
126 assert_eq!(file.seek_hole(0x10000).unwrap(), None); in seek_hole()
128 assert_eq!(file.seek_hole(0x10001).unwrap(), None); in seek_hole()
137 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole()
139 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole()
144 assert_eq!(file.seek_hole(0x10000).unwrap(), Some(0x20000)); in seek_hole()
147 assert_eq!(file.seek_hole(0x10001).unwrap(), Some(0x20000)); in seek_hole()
150 assert_eq!(file.seek_hole(0x1FFFF).unwrap(), Some(0x20000)); in seek_hole()
155 assert_eq!(file.seek_hole(0x20000).unwrap(), None); in seek_hole()
160 assert_eq!(file.seek_hole(0).unwrap(), Some(0)); in seek_hole()
162 assert_eq!(file.seek_hole(0xFFFF).unwrap(), Some(0xFFFF)); in seek_hole()
165 assert_eq!(file.seek_hole(0x10000).unwrap(), Some(0x20000)); in seek_hole()
168 assert_eq!(file.seek_hole(0x1FFFF).unwrap(), Some(0x20000)); in seek_hole()
171 assert_eq!(file.seek_hole(0x20000).unwrap(), Some(0x20000)); in seek_hole()
174 assert_eq!(file.seek_hole(0x20001).unwrap(), Some(0x20001)); in seek_hole()
179 assert_eq!(file.seek_hole(0x30000).unwrap(), None); in seek_hole()
187 assert_eq!(file.seek_hole(0x20000).unwrap(), Some(0x30000)); in seek_hole()
190 assert_eq!(file.seek_hole(0x20001).unwrap(), Some(0x30000)); in seek_hole()
193 assert_eq!(file.seek_hole(0x30000).unwrap(), None); in seek_hole()