1 <Type Name="FileHandleOperations" FullName="Mono.Unix.FileHandleOperations">
2 <TypeSignature Language="C#" Value="public sealed class FileHandleOperations" />
3 <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit FileHandleOperations extends System.Object" />
5 <AssemblyName>Mono.Posix</AssemblyName>
6 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
7 <AssemblyVersion>2.0.0.0</AssemblyVersion>
8 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <ThreadingSafetyStatement>All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.</ThreadingSafetyStatement>
12 <BaseTypeName>System.Object</BaseTypeName>
16 <summary>Operations that can be performed on a file handle.</summary>
18 The <see cref="T:Mono.Unix.FileHandleOperations" /> class provides
19 access to operating system operations that effect file handles, such as
20 <see cref="T:System.IO.FileStream" />s,
21 <see cref="T:Mono.Unix.UnixStream" />s, and
22 Unix file descriptors.
26 <Member MemberName="AdviseFileAccessPattern">
27 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (Mono.Unix.UnixStream stream, Mono.Unix.FileAccessPattern pattern);" />
28 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AdviseFileAccessPattern(class Mono.Unix.UnixStream stream, valuetype Mono.Unix.FileAccessPattern pattern) cil managed" />
29 <MemberType>Method</MemberType>
31 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
32 <AssemblyVersion>2.0.0.0</AssemblyVersion>
33 <AssemblyVersion>4.0.0.0</AssemblyVersion>
36 <ReturnType>System.Void</ReturnType>
39 <Parameter Name="stream" Type="Mono.Unix.UnixStream" />
40 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
43 <param name="stream">File stream to advise.</param>
44 <param name="pattern">
45 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
46 access pattern to suggest.
48 <summary>Advises a file access pattern for a file stream.</summary>
51 <c>AdviseFileAccessPattern</c> is used to announce an intention
52 to access file data with a specific pattern, allowing the kernel to
53 perform appropriate optimizations.</para>
55 <paramref name="pattern" /> applies from beginning of file to end
57 <para>The specified pattern is not binding; it merely constitutes an
58 expectation on behalf of the application.</para>
60 <exception cref="T:System.ArgumentException">
62 <paramref name="stream" /> is not a valid file stream.
66 <paramref name="advice" /> is not a value.
69 <exception cref="T:System.ArgumentNullException">
70 <paramref name="stream" />
71 is <see langword="null" />.</exception>
72 <exception cref="T:System.IO.IOException">
73 <paramref name="stream" />
74 refers to a pipe or FIFO.</exception>
75 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
78 <Member MemberName="AdviseFileAccessPattern">
79 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (int fd, Mono.Unix.FileAccessPattern pattern);" />
80 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AdviseFileAccessPattern(int32 fd, valuetype Mono.Unix.FileAccessPattern pattern) cil managed" />
81 <MemberType>Method</MemberType>
83 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
84 <AssemblyVersion>2.0.0.0</AssemblyVersion>
85 <AssemblyVersion>4.0.0.0</AssemblyVersion>
88 <ReturnType>System.Void</ReturnType>
91 <Parameter Name="fd" Type="System.Int32" />
92 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
96 A <see cref="T:System.Int32" /> containing the file descriptor to advise.
98 <param name="pattern">
99 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
100 access pattern to suggest.
102 <summary>Advises a file access pattern for a Unix file descriptor.</summary>
105 <c>AdviseFileAccessPattern</c> is used to announce an intention
106 to access file data with a specific pattern, allowing the kernel to
107 perform appropriate optimizations.</para>
109 <paramref name="pattern" /> applies from beginning of file to end
111 <para>The specified pattern is not binding; it merely constitutes an
112 expectation on behalf of the application.</para>
114 <exception cref="T:System.ArgumentException">
116 <paramref name="fd" /> is not a valid file descriptor.
120 <paramref name="advice" /> is not a valid value.
123 <exception cref="T:System.IO.IOException">
124 <paramref name="fd" />
125 refers to a pipe or FIFO.</exception>
126 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
129 <Member MemberName="AdviseFileAccessPattern">
130 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (System.IO.FileStream file, Mono.Unix.FileAccessPattern pattern);" />
131 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AdviseFileAccessPattern(class System.IO.FileStream file, valuetype Mono.Unix.FileAccessPattern pattern) cil managed" />
132 <MemberType>Method</MemberType>
134 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
135 <AssemblyVersion>2.0.0.0</AssemblyVersion>
136 <AssemblyVersion>4.0.0.0</AssemblyVersion>
139 <ReturnType>System.Void</ReturnType>
142 <Parameter Name="file" Type="System.IO.FileStream" />
143 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
146 <param name="file">File stream to advise.</param>
147 <param name="pattern">
148 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
149 access pattern to suggest.
151 <summary>Advises a file access pattern for a file stream.</summary>
154 <c>AdviseFileAccessPattern</c> is used to announce an intention
155 to access file data with a specific pattern, allowing the kernel to
156 perform appropriate optimizations.</para>
158 <paramref name="pattern" /> applies from beginning of file to end
160 <para>The specified pattern is not binding; it merely constitutes an
161 expectation on behalf of the application.</para>
163 <exception cref="T:System.ArgumentException">
165 <paramref name="file" /> is not a valid file stream.
169 <paramref name="advice" /> is not a valid value.
172 <exception cref="T:System.ArgumentNullException">
173 <paramref name="file" />
174 is <see langword="null" />.</exception>
175 <exception cref="T:System.IO.IOException">
176 <paramref name="file" />
177 refers to a pipe or FIFO.</exception>
178 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
181 <Member MemberName="AdviseFileAccessPattern">
182 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (Mono.Unix.UnixStream stream, Mono.Unix.FileAccessPattern pattern, long offset, long len);" />
183 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AdviseFileAccessPattern(class Mono.Unix.UnixStream stream, valuetype Mono.Unix.FileAccessPattern pattern, int64 offset, int64 len) cil managed" />
184 <MemberType>Method</MemberType>
186 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
187 <AssemblyVersion>2.0.0.0</AssemblyVersion>
188 <AssemblyVersion>4.0.0.0</AssemblyVersion>
191 <ReturnType>System.Void</ReturnType>
194 <Parameter Name="stream" Type="Mono.Unix.UnixStream" />
195 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
196 <Parameter Name="offset" Type="System.Int64" />
197 <Parameter Name="len" Type="System.Int64" />
200 <param name="stream">File stream to advise.</param>
201 <param name="pattern">
202 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
203 access pattern to suggest.
205 <param name="offset">
206 A <see cref="T:System.Int64" /> containing the start of the range to suggest
207 the <paramref name="pattern" /> access pattern.
210 A <see cref="T:System.Int64" /> containing the length of the range
211 to suggest the <paramref name="pattern" />
212 access pattern. If <c>0</c>, <paramref name="pattern" /> is suggested
215 <summary>Advises a file access pattern for a file stream.</summary>
218 <c>AdviseFileAccessPattern</c> is used to announce an intention
219 to access file data with a specific pattern, allowing the kernel to
220 perform appropriate optimizations.</para>
222 <paramref name="pattern" /> applies to a region starting at
223 <paramref name="offset" /> and extending for <paramref name="len" />
224 bytes (or until end-of-file if <paramref name="len" /> is <c>0</c>)
225 within the file specified by <paramref name="stream" />. The specified
226 region need not currently exist.</para>
227 <para>The specified pattern is not binding; it merely constitutes an
228 expectation on behalf of the application.</para>
230 <exception cref="T:System.ArgumentException">
232 <paramref name="stream" /> is not a valid file stream.
236 <paramref name="advice" /> is not a value.
239 <exception cref="T:System.ArgumentNullException">
240 <paramref name="stream" /> is <see langword="null" />.</exception>
241 <exception cref="T:System.IO.IOException">
242 <paramref name="stream" />
243 refers to a pipe or FIFO.</exception>
244 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
247 <Member MemberName="AdviseFileAccessPattern">
248 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (int fd, Mono.Unix.FileAccessPattern pattern, long offset, long len);" />
249 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AdviseFileAccessPattern(int32 fd, valuetype Mono.Unix.FileAccessPattern pattern, int64 offset, int64 len) cil managed" />
250 <MemberType>Method</MemberType>
252 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
253 <AssemblyVersion>2.0.0.0</AssemblyVersion>
254 <AssemblyVersion>4.0.0.0</AssemblyVersion>
257 <ReturnType>System.Void</ReturnType>
260 <Parameter Name="fd" Type="System.Int32" />
261 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
262 <Parameter Name="offset" Type="System.Int64" />
263 <Parameter Name="len" Type="System.Int64" />
267 A <see cref="T:System.Int32" /> containing the file descriptor to advise.
269 <param name="pattern">
270 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
271 access pattern to suggest.
273 <param name="offset">
274 A <see cref="T:System.Int64" /> containing the start of the range to suggest
275 the <paramref name="pattern" /> access pattern.
278 A <see cref="T:System.Int64" /> containing the length of the range
279 to suggest the <paramref name="pattern" />
280 access pattern. If <c>0</c>, <paramref name="pattern" /> is suggested
283 <summary>Advises a file access pattern for a Unix file descriptor.</summary>
286 <c>AdviseFileAccessPattern</c> is used to announce an intention
287 to access file data with a specific pattern, allowing the kernel to
288 perform appropriate optimizations.</para>
290 <paramref name="pattern" /> applies to a region starting at
291 <paramref name="offset" /> and extending for <paramref name="len" />
292 bytes (or until end-of-file if <paramref name="len" /> is <c>0</c>)
293 within the file specified by <paramref name="fd" />. The specified
294 region need not currently exist.</para>
295 <para>The specified pattern is not binding; it merely constitutes an
296 expectation on behalf of the application.</para>
298 <exception cref="T:System.ArgumentException">
300 <paramref name="fd" /> is not a valid file descriptor.
304 <paramref name="advice" /> is not a valid value.
307 <exception cref="T:System.IO.IOException">
308 <paramref name="fd" />
309 refers to a pipe or FIFO.</exception>
310 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />
313 <Member MemberName="AdviseFileAccessPattern">
314 <MemberSignature Language="C#" Value="public static void AdviseFileAccessPattern (System.IO.FileStream file, Mono.Unix.FileAccessPattern pattern, long offset, long len);" />
315 <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AdviseFileAccessPattern(class System.IO.FileStream file, valuetype Mono.Unix.FileAccessPattern pattern, int64 offset, int64 len) cil managed" />
316 <MemberType>Method</MemberType>
318 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
319 <AssemblyVersion>2.0.0.0</AssemblyVersion>
320 <AssemblyVersion>4.0.0.0</AssemblyVersion>
323 <ReturnType>System.Void</ReturnType>
326 <Parameter Name="file" Type="System.IO.FileStream" />
327 <Parameter Name="pattern" Type="Mono.Unix.FileAccessPattern" />
328 <Parameter Name="offset" Type="System.Int64" />
329 <Parameter Name="len" Type="System.Int64" />
332 <param name="file">File stream to advise.</param>
333 <param name="pattern">
334 A <see cref="T:Mono.Unix.FileAccessPattern" /> containing the file
335 access pattern to suggest.
337 <param name="offset">
338 A <see cref="T:System.Int64" /> containing the start of the range to suggest
339 the <paramref name="pattern" /> access pattern.
342 A <see cref="T:System.Int64" /> containing the length of the range
343 to suggest the <paramref name="pattern" />
344 access pattern. If <c>0</c>, <paramref name="pattern" /> is suggested
347 <summary>Advises a file access pattern for a Unix file descriptor.</summary>
350 <c>AdviseFileAccessPattern</c> is used to announce an intention
351 to access file data with a specific pattern, allowing the kernel to
352 perform appropriate optimizations.</para>
354 <paramref name="pattern" /> applies to a region starting at
355 <paramref name="offset" /> and extending for <paramref name="len" />
356 bytes (or until end-of-file if <paramref name="len" /> is <c>0</c>)
357 within the file specified by <paramref name="file" />. The specified
358 region need not currently exist.</para>
359 <para>The specified pattern is not binding; it merely constitutes an
360 expectation on behalf of the application.</para>
362 <exception cref="T:System.ArgumentException">
364 <paramref name="file" /> is not a valid file stream.
368 <paramref name="advice" /> is not a valid value.
371 <exception cref="T:System.ArgumentNullException">
372 <paramref name="file" />
373 is <see langword="null" />.</exception>
374 <exception cref="T:System.IO.IOException">
375 <paramref name="file" />
376 refers to a pipe or FIFO.</exception>
377 <altmember cref="M:Mono.Unix.Native.Syscall.posix_fadvise" />