1 <Type Name="FileHandleOperations" FullName="Mono.Unix.FileHandleOperations">
2 <TypeSignature Language="C#" Value="public sealed class FileHandleOperations" />
4 <AssemblyName>Mono.Posix</AssemblyName>
5 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
6 <AssemblyVersion>2.0.0.0</AssemblyVersion>
8 <ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
10 <BaseTypeName>System.Object</BaseTypeName>
14 <summary>Operations that can be performed on a file handle.</summary>
16 The <see cref="T:Mono.Unix.FileHandleOperations" /> class provides
17 access to operating system operations that effect file handles, such as
18 <see cref="T:System.IO.FileStream" />s,
19 <see cref="T:Mono.Unix.UnixStream" />s, and
20 Unix file descriptors.
24 <Member MemberName="AdviseFileAccessPattern">
25 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (Mono.Unix.UnixStream stream, Mono.Unix.FileAccessPattern pattern);" />
26 <MemberType>Method</MemberType>
28 <ReturnType>System.Void</ReturnType>
31 <Parameter Name="stream" Type="Mono.Unix.UnixStream" />
32 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
35 <param name="stream">File stream to advise.</param>
36 <param name="pattern">
37 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
38 access pattern to suggest.
40 <summary>Advises a file access pattern for a file stream.</summary>
43 <c>AdviseFileAccessPattern</c> is used to announce an intention
44 to access file data with a specific pattern, allowing the kernel to
45 perform appropriate optimizations.</para>
47 <paramref name="pattern" /> applies from beginning of file to end
49 <para>The specified pattern is not binding; it merely constitutes an
50 expectation on behalf of the application.</para>
52 <exception cref="T:System.ArgumentException">
54 <paramref name="stream" /> is not a valid file stream.
58 <paramref name="advice" /> is not a value.
61 <exception cref="T:System.ArgumentNullException">
62 <paramref name="stream" />
63 is <see langword="null" />.</exception>
64 <exception cref="T:System.IO.IOException">
65 <paramref name="stream" />
66 refers to a pipe or FIFO.</exception>
67 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
70 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
71 <AssemblyVersion>2.0.0.0</AssemblyVersion>
74 <Member MemberName="AdviseFileAccessPattern">
75 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (int fd, Mono.Unix.FileAccessPattern pattern);" />
76 <MemberType>Method</MemberType>
78 <ReturnType>System.Void</ReturnType>
81 <Parameter Name="fd" Type="System.Int32" />
82 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
86 A <see cref="T:System.Int32" /> containing the file descriptor to advise.
88 <param name="pattern">
89 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
90 access pattern to suggest.
92 <summary>Advises a file access pattern for a Unix file descriptor.</summary>
95 <c>AdviseFileAccessPattern</c> is used to announce an intention
96 to access file data with a specific pattern, allowing the kernel to
97 perform appropriate optimizations.</para>
99 <paramref name="pattern" /> applies from beginning of file to end
101 <para>The specified pattern is not binding; it merely constitutes an
102 expectation on behalf of the application.</para>
104 <exception cref="T:System.ArgumentException">
106 <paramref name="fd" /> is not a valid file descriptor.
110 <paramref name="advice" /> is not a valid value.
113 <exception cref="T:System.IO.IOException">
114 <paramref name="fd" />
115 refers to a pipe or FIFO.</exception>
116 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
119 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
120 <AssemblyVersion>2.0.0.0</AssemblyVersion>
123 <Member MemberName="AdviseFileAccessPattern">
124 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (System.IO.FileStream file, Mono.Unix.FileAccessPattern pattern);" />
125 <MemberType>Method</MemberType>
127 <ReturnType>System.Void</ReturnType>
130 <Parameter Name="file" Type="System.IO.FileStream" />
131 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
134 <param name="file">File stream to advise.</param>
135 <param name="pattern">
136 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
137 access pattern to suggest.
139 <summary>Advises a file access pattern for a file stream.</summary>
142 <c>AdviseFileAccessPattern</c> is used to announce an intention
143 to access file data with a specific pattern, allowing the kernel to
144 perform appropriate optimizations.</para>
146 <paramref name="pattern" /> applies from beginning of file to end
148 <para>The specified pattern is not binding; it merely constitutes an
149 expectation on behalf of the application.</para>
151 <exception cref="T:System.ArgumentException">
153 <paramref name="file" /> is not a valid file stream.
157 <paramref name="advice" /> is not a valid value.
160 <exception cref="T:System.ArgumentNullException">
161 <paramref name="file" />
162 is <see langword="null" />.</exception>
163 <exception cref="T:System.IO.IOException">
164 <paramref name="file" />
165 refers to a pipe or FIFO.</exception>
166 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
169 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
170 <AssemblyVersion>2.0.0.0</AssemblyVersion>
173 <Member MemberName="AdviseFileAccessPattern">
174 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (Mono.Unix.UnixStream stream, Mono.Unix.FileAccessPattern pattern, long offset, long len);" />
175 <MemberType>Method</MemberType>
177 <ReturnType>System.Void</ReturnType>
180 <Parameter Name="stream" Type="Mono.Unix.UnixStream" />
181 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
182 <Parameter Name="offset" Type="System.Int64" />
183 <Parameter Name="len" Type="System.Int64" />
186 <param name="stream">File stream to advise.</param>
187 <param name="pattern">
188 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
189 access pattern to suggest.
191 <param name="offset">
192 A <see cref="T:System.Int64" /> containing the start of the range to suggest
193 the <paramref name="pattern" /> access pattern.
196 A <see cref="T:System.Int64" /> containing the length of the range
197 to suggest the <paramref name="pattern" />
198 access pattern. If <c>0</c>, <paramref name="pattern" /> is suggested
201 <summary>Advises a file access pattern for a file stream.</summary>
204 <c>AdviseFileAccessPattern</c> is used to announce an intention
205 to access file data with a specific pattern, allowing the kernel to
206 perform appropriate optimizations.</para>
208 <paramref name="pattern" /> applies to a region starting at
209 <paramref name="offset" /> and extending for <paramref name="len" />
210 bytes (or until end-of-file if <paramref name="len" /> is <c>0</c>)
211 within the file specified by <paramref name="stream" />. The specified
212 region need not currently exist.</para>
213 <para>The specified pattern is not binding; it merely constitutes an
214 expectation on behalf of the application.</para>
216 <exception cref="T:System.ArgumentException">
218 <paramref name="stream" /> is not a valid file stream.
222 <paramref name="advice" /> is not a value.
225 <exception cref="T:System.ArgumentNullException">
226 <paramref name="stream" /> is <see langword="null" />.</exception>
227 <exception cref="T:System.IO.IOException">
228 <paramref name="stream" />
229 refers to a pipe or FIFO.</exception>
230 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
233 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
234 <AssemblyVersion>2.0.0.0</AssemblyVersion>
237 <Member MemberName="AdviseFileAccessPattern">
238 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (int fd, Mono.Unix.FileAccessPattern pattern, long offset, long len);" />
239 <MemberType>Method</MemberType>
241 <ReturnType>System.Void</ReturnType>
244 <Parameter Name="fd" Type="System.Int32" />
245 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
246 <Parameter Name="offset" Type="System.Int64" />
247 <Parameter Name="len" Type="System.Int64" />
251 A <see cref="T:System.Int32" /> containing the file descriptor to advise.
253 <param name="pattern">
254 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
255 access pattern to suggest.
257 <param name="offset">
258 A <see cref="T:System.Int64" /> containing the start of the range to suggest
259 the <paramref name="pattern" /> access pattern.
262 A <see cref="T:System.Int64" /> containing the length of the range
263 to suggest the <paramref name="pattern" />
264 access pattern. If <c>0</c>, <paramref name="pattern" /> is suggested
267 <summary>Advises a file access pattern for a Unix file descriptor.</summary>
270 <c>AdviseFileAccessPattern</c> is used to announce an intention
271 to access file data with a specific pattern, allowing the kernel to
272 perform appropriate optimizations.</para>
274 <paramref name="pattern" /> applies to a region starting at
275 <paramref name="offset" /> and extending for <paramref name="len" />
276 bytes (or until end-of-file if <paramref name="len" /> is <c>0</c>)
277 within the file specified by <paramref name="fd" />. The specified
278 region need not currently exist.</para>
279 <para>The specified pattern is not binding; it merely constitutes an
280 expectation on behalf of the application.</para>
282 <exception cref="T:System.ArgumentException">
284 <paramref name="fd" /> is not a valid file descriptor.
288 <paramref name="advice" /> is not a valid value.
291 <exception cref="T:System.IO.IOException">
292 <paramref name="fd" />
293 refers to a pipe or FIFO.</exception>
294 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
297 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
298 <AssemblyVersion>2.0.0.0</AssemblyVersion>
301 <Member MemberName="AdviseFileAccessPattern">
302 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (System.IO.FileStream file, Mono.Unix.FileAccessPattern pattern, long offset, long len);" />
303 <MemberType>Method</MemberType>
305 <ReturnType>System.Void</ReturnType>
308 <Parameter Name="file" Type="System.IO.FileStream" />
309 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
310 <Parameter Name="offset" Type="System.Int64" />
311 <Parameter Name="len" Type="System.Int64" />
314 <param name="file">File stream to advise.</param>
315 <param name="pattern">
316 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
317 access pattern to suggest.
319 <param name="offset">
320 A <see cref="T:System.Int64" /> containing the start of the range to suggest
321 the <paramref name="pattern" /> access pattern.
324 A <see cref="T:System.Int64" /> containing the length of the range
325 to suggest the <paramref name="pattern" />
326 access pattern. If <c>0</c>, <paramref name="pattern" /> is suggested
329 <summary>Advises a file access pattern for a Unix file descriptor.</summary>
332 <c>AdviseFileAccessPattern</c> is used to announce an intention
333 to access file data with a specific pattern, allowing the kernel to
334 perform appropriate optimizations.</para>
336 <paramref name="pattern" /> applies to a region starting at
337 <paramref name="offset" /> and extending for <paramref name="len" />
338 bytes (or until end-of-file if <paramref name="len" /> is <c>0</c>)
339 within the file specified by <paramref name="file" />. The specified
340 region need not currently exist.</para>
341 <para>The specified pattern is not binding; it merely constitutes an
342 expectation on behalf of the application.</para>
344 <exception cref="T:System.ArgumentException">
346 <paramref name="file" /> is not a valid file stream.
350 <paramref name="advice" /> is not a valid value.
353 <exception cref="T:System.ArgumentNullException">
354 <paramref name="file" />
355 is <see langword="null" />.</exception>
356 <exception cref="T:System.IO.IOException">
357 <paramref name="file" />
358 refers to a pipe or FIFO.</exception>
359 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
362 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
363 <AssemblyVersion>2.0.0.0</AssemblyVersion>