1 <Type Name="StdioFileStream" FullName="Mono.Unix.StdioFileStream">
2 <TypeSignature Language="C#" Value="public class StdioFileStream : System.IO.Stream" />
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.IO.Stream</BaseTypeName>
14 <summary>A <see cref="T:System.IO.Stream" /> wrapper over the <c>FILE</c>
18 <see cref="T:Mono.Unix.StdioFileStream" /> is used for reading and
19 writing files on a file system and interoperating with the standard
20 ANSI/ISO C <c>FILE</c> pointer data type.
23 <see cref="T:Mono.Unix.StdioFileStream" /> objects support
24 random access to files using the
25 <see cref="M:System.IO.Stream.Seek(System.Int64,System.IO.SeekOrigin)" />
27 <see cref="P:System.IO.Stream.CanSeek" /> properties of
28 <see cref="T:Mono.Unix.StdioFileStream" /> instances
29 encapsulating files are set to <see langword="true" />.
31 <see cref="M:System.IO.Stream.Seek(System.Int64,System.IO.SeekOrigin)" />
32 method allows the read/write position to be moved to any position
33 within the file. This is done with byte offset reference point
34 parameters. The byte offset is relative to the seek reference point,
35 which can be the beginning, the current position, or the end of the
36 underlying file, as represented by the three values of the
37 <see cref="T:System.IO.SeekOrigin" /> enumeration.
40 If a <see cref="T:Mono.Unix.StdioFileStream" /> encapsulates a
41 device that does not support seeking, its
42 <see cref="P:System.IO.FileStream.CanSeek" /> property is
43 <see langword="false" />.
44 <block subset="none" type="note">
45 For additional information, see
46 <see cref="P:System.IO.Stream.CanSeek" />.
50 The following example demonstrates the use of a
51 <see cref="T:Mono.Unix.StdioFileStream" /> object.
53 <code lang="C#">using System;
58 public static void Main(String[] args) {
59 StdioFileStream fs = new StdioFileStream ("log.txt", "ab");
60 StreamWriter w = new StreamWriter(fs);
65 w.Close(); // Close the writer and underlying file.
67 fs = new StdioFileStream("log.txt", "rb");
69 StreamReader r = new StreamReader(fs);
70 r.BaseStream.Seek(0, SeekOrigin.Begin);
74 public static void Log (String logMessage, StreamWriter w) {
75 w.Write("Log Entry : ");
76 w.WriteLine("{0} {1}", DateTime.Now.ToLongTimeString(), DateTime.Now.ToLongDateString());
78 w.WriteLine(":{0}", logMessage);
79 w.WriteLine ("-------------------------------");
83 public static void DumpLog (StreamReader r) {
84 while (r.Peek() > -1) { // While not at the end of the file, write to standard output.
85 Console.WriteLine(r.ReadLine());
92 <para>Some example output is </para>
94 <para>Log Entry : 9:26:21 AM Friday, July 06, 2001</para>
97 <para>-------------------------------</para>
98 <para>Log Entry : 9:26:21 AM Friday, July 06, 2001</para>
101 <para>-------------------------------</para>
107 <Member MemberName=".ctor">
108 <MemberSignature Language="C#" Value="public StdioFileStream (IntPtr fileStream);" />
109 <MemberType>Constructor</MemberType>
111 <Parameter Name="fileStream" Type="System.IntPtr" />
114 <param name="fileStream">
115 A <see cref="T:System.IntPtr" /> containing a <c>FILE</c> pointer.
117 <summary>Creates a <see cref="T:Mono.Unix.StdioFileStream" /> type,
118 wrapping the existing unmanaged <c>FILE</c> pointer
119 <paramref name="fileStream" />.</summary>
121 <para>By default, <paramref name="fileStream" /> is owned by the
122 created <see cref="T:Mono.Unix.StdioFileStream" /> instance.</para>
124 <exception cref="T:System.ArgumentException">
125 <paramref name="fileStream" /> is an invalid <c>FILE</c> pointer.
127 <altmember cref="C:Mono.Unix.StdioFileStream(IntPtr, bool)" />
130 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
131 <AssemblyVersion>2.0.0.0</AssemblyVersion>
134 <Member MemberName=".ctor">
135 <MemberSignature Language="C#" Value="public StdioFileStream (string path);" />
136 <MemberType>Constructor</MemberType>
138 <Parameter Name="path" Type="System.String" />
141 <param name="path">A <see cref="T:System.String" /> containing the file name to open.</param>
142 <summary>Opens <paramref name="path" /> for reading.</summary>
145 <exception cref="T:System.ArgumentNullException">
146 <paramref name="path" /> or <paramref name="mode" /> is
147 <see langword="null" />.
149 <exception cref="T:System.ArgumentException">
150 <paramref name="path" /> is a <c>0</c>-length string.
152 <exception cref="T:System.IO.DirectoryNotFoundException">
153 <paramref name="path" /> could not be opened.
157 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
158 <AssemblyVersion>2.0.0.0</AssemblyVersion>
161 <Member MemberName=".ctor">
162 <MemberSignature Language="C#" Value="public StdioFileStream (IntPtr fileStream, bool ownsHandle);" />
163 <MemberType>Constructor</MemberType>
165 <Parameter Name="fileStream" Type="System.IntPtr" />
166 <Parameter Name="ownsHandle" Type="System.Boolean" />
169 <param name="fileStream">A <see cref="T:System.IntPtr" /> containing a <c>FILE</c> pointer</param>
170 <param name="ownsHandle">A <see cref="T:System.Boolean" /> specifying whether or not the created
171 <see cref="T:Mono.Unix.StdioFileStream" /> instance "owns"
172 <paramref name="fileStream" />.</param>
173 <summary>Creates a <see cref="T:Mono.Unix.StdioFileStream" /> type,
174 wrapping the existing unmanaged <c>FILE</c> pointer
175 <paramref name="fileStream" />.</summary>
176 <remarks>If <paramref name="ownsHandle" /> is <see langword="true" />,
177 then <paramref name="fileStream" /> will be closed via
178 <see cref="M:Mono.Unix.Native.Stdlib.fclose" /> when
179 <see cref="M:Mono.Unix.StdioFileStream.Close" /> is invoked (which is
180 also called from the finalizer and from the
181 <see cref="T:System.IDisposable" /> implementation). Otherwise,
182 <paramref name="fileStream" /> will only be flushed on
183 <see cref="M:Mono.Unix.StdioFileStream.Close" /> and not actually
185 <exception cref="T:System.ArgumentException">
186 <paramref name="fileStream" /> is an invalid <c>FILE</c> pointer.
190 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
191 <AssemblyVersion>2.0.0.0</AssemblyVersion>
194 <Member MemberName=".ctor">
195 <MemberSignature Language="C#" Value="public StdioFileStream (IntPtr fileStream, System.IO.FileAccess access);" />
196 <MemberType>Constructor</MemberType>
198 <Parameter Name="fileStream" Type="System.IntPtr" />
199 <Parameter Name="access" Type="System.IO.FileAccess" />
202 <param name="fileStream">A <see cref="T:System.IntPtr" /> containing a <c>FILE</c> pointer</param>
203 <param name="access">A <see cref="T:System.IO.FileAccess" /> value
204 that determins how the file may be accessed by the
205 <see cref="T:Mono.Unix.StdioFileStream" /> object. This parameter is
206 used to specify the initial values of the
207 <see cref="P:System.IO.Stream.CanRead" /> and
208 <see cref="P:System.IO.Stream.CanWrite" /> properties.</param>
209 <summary>Creates a <see cref="T:Mono.Unix.StdioFileStream" /> type,
210 wrapping the existing unmanaged <c>FILE</c> pointer
211 <paramref name="fileStream" /> with the specified file
212 <paramref name="access" />.</summary>
214 <para>By default, <paramref name="fileStream" /> is owned by the
215 created <see cref="T:Mono.Unix.StdioFileStream" /> instance.</para>
217 <exception cref="T:System.ArgumentException">
218 <paramref name="fileStream" /> is an invalid <c>FILE</c> pointer.
220 <altmember cref="C:Mono.Unix.StdioFileStream(IntPtr, System.IO.FileAccess, bool)" />
223 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
224 <AssemblyVersion>2.0.0.0</AssemblyVersion>
227 <Member MemberName=".ctor">
228 <MemberSignature Language="C#" Value="public StdioFileStream (string path, System.IO.FileAccess access);" />
229 <MemberType>Constructor</MemberType>
231 <Parameter Name="path" Type="System.String" />
232 <Parameter Name="access" Type="System.IO.FileAccess" />
235 <param name="path">A <see cref="T:System.String" /> containing the file name to open.</param>
236 <param name="access">A <see cref="T:System.IO.FileAccess" /> value
237 that determins how the file may be accessed by the
238 <see cref="T:Mono.Unix.StdioFileStream" /> object. This parameter is
239 used to specify the initial values of the
240 <see cref="P:System.IO.Stream.CanRead" /> and
241 <see cref="P:System.IO.Stream.CanWrite" /> properties.</param>
242 <summary>Opens <paramref name="path" /> with the specified file access
243 <paramref name="access" />.</summary>
246 <exception cref="T:System.ArgumentNullException">
247 <paramref name="path" /> or <paramref name="mode" /> is
248 <see langword="null" />.
250 <exception cref="T:System.ArgumentException">
251 <paramref name="path" /> is a <c>0</c>-length string.
253 <exception cref="T:System.IO.DirectoryNotFoundException">
254 <paramref name="path" /> could not be opened.
256 <exception cref="T:System.ArgumentOutOfRangeException">
257 <paramref name="access" /> is not one of
258 <see cref="F:System.IO.FileAccess.Read" />,
259 <see cref="F:System.IO.FileAccess.Write" />, or
260 <see cref="F:System.IO.FileAccess.ReadWrite" />.
264 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
265 <AssemblyVersion>2.0.0.0</AssemblyVersion>
268 <Member MemberName=".ctor">
269 <MemberSignature Language="C#" Value="public StdioFileStream (string path, System.IO.FileMode mode);" />
270 <MemberType>Constructor</MemberType>
272 <Parameter Name="path" Type="System.String" />
273 <Parameter Name="mode" Type="System.IO.FileMode" />
276 <param name="path">A <see cref="T:System.String" /> containing the file name to open.</param>
277 <param name="mode">A <see cref="T:System.IO.FileMode" /> value that
278 determines how to open or create the file.</param>
279 <summary>Opens <paramref name="path" /> with the specified file mode
280 <paramref name="mode" />.</summary>
283 <exception cref="T:System.ArgumentNullException">
284 <paramref name="path" /> or <paramref name="mode" /> is
285 <see langword="null" />.
287 <exception cref="T:System.ArgumentException">
288 <paramref name="path" /> is a <c>0</c>-length string.
290 <exception cref="T:System.IO.DirectoryNotFoundException">
291 <paramref name="path" /> could not be opened.
293 <exception cref="T:System.IO.IOException">
294 <paramref name="path" /> exists and
295 <see cref="F:System.IO.FileMode.CreateNew" /> was specified.
297 <exception cref="T:System.IO.FileNotFoundException">
298 <paramref name="path" /> doesn't exist and
299 <see cref="F:System.IO.FileMode.Open" /> was specified.
303 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
304 <AssemblyVersion>2.0.0.0</AssemblyVersion>
307 <Member MemberName=".ctor">
308 <MemberSignature Language="C#" Value="public StdioFileStream (string path, string mode);" />
309 <MemberType>Constructor</MemberType>
311 <Parameter Name="path" Type="System.String" />
312 <Parameter Name="mode" Type="System.String" />
315 <param name="path">A <see cref="T:System.String" /> containing the file name to open.</param>
316 <param name="mode">A <see cref="T:System.String" /> specifying how to access <paramref name="path" />.</param>
317 <summary>Opens <paramref name="path" /> with the specified
318 <paramref name="mode" />.</summary>
320 <para>The argument <paramref name="mode" /> points to a string
321 beginning with one of the following sequences (Additional characters
322 may follow these sequences.):</para>
326 <paramref name="mode" />
328 <description>Description</description>
334 <description> Open text file for reading. The stream is positioned at the beginning of the file.</description>
340 <description>Open for reading and writing. The stream is positioned at the beginning of the file.</description>
346 <description>Truncate file to zero length or create text file for writing. The stream is positioned at the beginning of the file.</description>
352 <description>Open for reading and writing. The file is created if it does not exist, otherwise it is truncated. The stream is positioned at the beginning of the file.</description>
358 <description>Open for writing. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening <see cref="M:System.IO.Stream.Seek" /> call or similar.</description>
364 <description>Open for reading and writing. The file is created if it does not exist. The stream is positioned at the end of the file. Subsequent writes to the file will always end up at the then current end of file, irrespective of any intervening <see cref="M:System.IO.Stream.Seek" /> or similar.</description>
367 <para>The <paramref name="mode" /> string can also include the letter
368 "b" either as a third character or as a character between the
369 characters in any of the two-character strings described above, and
370 is used to enable <i>binary</i> reading/writing on platforms which
371 have different text/binary encodings (read: Microsoft Windows). The
372 default (non-<c>b</c><paramref name="mode" />) is text encoding.</para>
373 <para>Any created files will have mode <c>S_IRUSR | S_IWUSR | S_IRGRP |
374 S_IWGRP | S_IROTH | S_IWOTH</c> (0666), as modified by the process'
375 umask value (see <see cref="M:Mono.Unix.Native.Syscall.umask" />(2)).
377 <para>ANSI C requires that a file positioning function intervene
378 between output and input, unless an input operation encounters
381 <exception cref="T:System.ArgumentNullException">
382 <paramref name="path" /> or <paramref name="mode" /> is
383 <see langword="null" />.
385 <exception cref="T:System.ArgumentException">
386 <paramref name="path" /> is a <c>0</c>-length string.
388 <exception cref="T:System.IO.DirectoryNotFoundException">
389 <paramref name="path" /> could not be opened.
391 <altmember cref="M:Mono.Unix.Native.Stdlib.fopen" />
394 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
395 <AssemblyVersion>2.0.0.0</AssemblyVersion>
398 <Member MemberName=".ctor">
399 <MemberSignature Language="C#" Value="public StdioFileStream (IntPtr fileStream, System.IO.FileAccess access, bool ownsHandle);" />
400 <MemberType>Constructor</MemberType>
402 <Parameter Name="fileStream" Type="System.IntPtr" />
403 <Parameter Name="access" Type="System.IO.FileAccess" />
404 <Parameter Name="ownsHandle" Type="System.Boolean" />
407 <param name="fileStream">A <see cref="T:System.IntPtr" /> containing a <c>FILE</c> pointer</param>
408 <param name="access">A <see cref="T:System.IO.FileAccess" /> value
409 that determins how the file may be accessed by the
410 <see cref="T:Mono.Unix.StdioFileStream" /> object. This parameter is
411 used to specify the initial values of the
412 <see cref="P:System.IO.Stream.CanRead" /> and
413 <see cref="P:System.IO.Stream.CanWrite" /> properties.</param>
414 <param name="ownsHandle">A <see cref="T:System.Boolean" /> specifying whether or not the created
415 <see cref="T:Mono.Unix.StdioFileStream" /> instance "owns"
416 <paramref name="fileStream" />.</param>
417 <summary>Creates a <see cref="T:Mono.Unix.StdioFileStream" /> type,
418 wrapping the existing unmanaged <c>FILE</c> pointer
419 <paramref name="fileStream" /> with the specified file
420 <paramref name="access" />.</summary>
421 <remarks>If <paramref name="ownsHandle" /> is <see langword="true" />,
422 then <paramref name="fileStream" /> will be closed via
423 <see cref="M:Mono.Unix.Native.Stdlib.fclose" /> when
424 <see cref="M:Mono.Unix.StdioFileStream.Close" /> is invoked (which is
425 also called from the finalizer and from the
426 <see cref="T:System.IDisposable" /> implementation). Otherwise,
427 <paramref name="fileStream" /> will only be flushed on
428 <see cref="M:Mono.Unix.StdioFileStream.Close" /> and not actually
430 <exception cref="T:System.ArgumentException">
431 <paramref name="fileStream" /> is an invalid <c>FILE</c> pointer.
435 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
436 <AssemblyVersion>2.0.0.0</AssemblyVersion>
439 <Member MemberName=".ctor">
440 <MemberSignature Language="C#" Value="public StdioFileStream (string path, System.IO.FileMode mode, System.IO.FileAccess access);" />
441 <MemberType>Constructor</MemberType>
443 <Parameter Name="path" Type="System.String" />
444 <Parameter Name="mode" Type="System.IO.FileMode" />
445 <Parameter Name="access" Type="System.IO.FileAccess" />
448 <param name="path">A <see cref="T:System.String" /> containing the file name to open.</param>
449 <param name="mode">A <see cref="T:System.IO.FileMode" /> value that
450 determines how to open or create the file.</param>
451 <param name="access">A <see cref="T:System.IO.FileAccess" /> value
452 that determins how the file may be accessed by the
453 <see cref="T:Mono.Unix.StdioFileStream" /> object. This parameter is
454 used to specify the initial values of the
455 <see cref="P:System.IO.Stream.CanRead" /> and
456 <see cref="P:System.IO.Stream.CanWrite" /> properties.</param>
457 <summary>Opens <paramref name="path" /> with the specified file mode
458 <paramref name="mode" /> and file access
459 <paramref name="access" />.</summary>
462 <exception cref="T:System.ArgumentNullException">
463 <paramref name="path" /> or <paramref name="mode" /> is
464 <see langword="null" />.
466 <exception cref="T:System.ArgumentException">
467 <paramref name="path" /> is a <c>0</c>-length string.
469 <exception cref="T:System.IO.DirectoryNotFoundException">
470 <paramref name="path" /> could not be opened.
472 <exception cref="T:System.IO.IOException">
473 <paramref name="path" /> exists and
474 <see cref="F:System.IO.FileMode.CreateNew" /> was specified.
476 <exception cref="T:System.IO.FileNotFoundException">
477 <paramref name="path" /> doesn't exist and
478 <see cref="F:System.IO.FileMode.Open" /> was specified.
480 <exception cref="T:System.ArgumentOutOfRangeException">
481 <paramref name="access" /> is not one of
482 <see cref="F:System.IO.FileAccess.Read" />,
483 <see cref="F:System.IO.FileAccess.Write" />, or
484 <see cref="F:System.IO.FileAccess.ReadWrite" />.
488 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
489 <AssemblyVersion>2.0.0.0</AssemblyVersion>
492 <Member MemberName="CanRead">
493 <MemberSignature Language="C#" Value="public override bool CanRead { get; }" />
494 <MemberType>Property</MemberType>
496 <ReturnType>System.Boolean</ReturnType>
499 <summary>To be added.</summary>
500 <value>To be added.</value>
501 <remarks>To be added.</remarks>
504 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
505 <AssemblyVersion>2.0.0.0</AssemblyVersion>
508 <Member MemberName="CanSeek">
509 <MemberSignature Language="C#" Value="public override bool CanSeek { get; }" />
510 <MemberType>Property</MemberType>
512 <ReturnType>System.Boolean</ReturnType>
515 <summary>To be added.</summary>
516 <value>To be added.</value>
517 <remarks>To be added.</remarks>
520 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
521 <AssemblyVersion>2.0.0.0</AssemblyVersion>
524 <Member MemberName="CanWrite">
525 <MemberSignature Language="C#" Value="public override bool CanWrite { get; }" />
526 <MemberType>Property</MemberType>
528 <ReturnType>System.Boolean</ReturnType>
531 <summary>To be added.</summary>
532 <value>To be added.</value>
533 <remarks>To be added.</remarks>
536 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
537 <AssemblyVersion>2.0.0.0</AssemblyVersion>
540 <Member MemberName="Close">
541 <MemberSignature Language="C#" Value="public override void Close ();" />
542 <MemberType>Method</MemberType>
544 <ReturnType>System.Void</ReturnType>
548 <summary>To be added.</summary>
549 <remarks>To be added.</remarks>
552 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
553 <AssemblyVersion>2.0.0.0</AssemblyVersion>
556 <Member MemberName="Finalize">
557 <MemberSignature Language="C#" Value="~StdioFileStream ();" />
558 <MemberType>Method</MemberType>
560 <ReturnType>System.Void</ReturnType>
564 <summary>To be added.</summary>
565 <remarks>To be added.</remarks>
568 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
569 <AssemblyVersion>2.0.0.0</AssemblyVersion>
572 <Member MemberName="Flush">
573 <MemberSignature Language="C#" Value="public override void Flush ();" />
574 <MemberType>Method</MemberType>
576 <ReturnType>System.Void</ReturnType>
580 <summary>To be added.</summary>
581 <remarks>To be added.</remarks>
584 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
585 <AssemblyVersion>2.0.0.0</AssemblyVersion>
588 <Member MemberName="Handle">
589 <MemberSignature Language="C#" Value="public IntPtr Handle { get; }" />
590 <MemberType>Property</MemberType>
592 <ReturnType>System.IntPtr</ReturnType>
595 <summary>The underlying <c>FILE</c> pointer.</summary>
596 <value>A <see cref="T:System.IntPtr" /> containing the underlying
603 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
604 <AssemblyVersion>2.0.0.0</AssemblyVersion>
607 <Member MemberName="InvalidFileStream">
608 <MemberSignature Language="C#" Value="public static readonly IntPtr InvalidFileStream;" />
609 <MemberType>Field</MemberType>
611 <ReturnType>System.IntPtr</ReturnType>
614 <summary>An invalid <c>FILE</c> pointer.</summary>
615 <remarks>This is <see cref="F:System.IntPtr.Zero" />.</remarks>
618 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
619 <AssemblyVersion>2.0.0.0</AssemblyVersion>
622 <Member MemberName="Length">
623 <MemberSignature Language="C#" Value="public override long Length { get; }" />
624 <MemberType>Property</MemberType>
626 <ReturnType>System.Int64</ReturnType>
629 <summary>To be added.</summary>
630 <value>To be added.</value>
631 <remarks>To be added.</remarks>
634 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
635 <AssemblyVersion>2.0.0.0</AssemblyVersion>
638 <Member MemberName="Position">
639 <MemberSignature Language="C#" Value="public override long Position { set; get; }" />
640 <MemberType>Property</MemberType>
642 <ReturnType>System.Int64</ReturnType>
645 <summary>To be added.</summary>
646 <value>To be added.</value>
647 <remarks>To be added.</remarks>
650 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
651 <AssemblyVersion>2.0.0.0</AssemblyVersion>
654 <Member MemberName="Read">
655 <MemberSignature Language="C#" Value="public override int Read (byte[] buffer, int offset, int count);" />
656 <MemberType>Method</MemberType>
658 <ReturnType>System.Int32</ReturnType>
661 <Parameter Name="buffer" Type="System.Byte[]" />
662 <Parameter Name="offset" Type="System.Int32" />
663 <Parameter Name="count" Type="System.Int32" />
666 <param name="buffer">To be added.</param>
667 <param name="offset">To be added.</param>
668 <param name="count">To be added.</param>
669 <summary>To be added.</summary>
670 <returns>To be added.</returns>
671 <remarks>To be added.</remarks>
674 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
675 <AssemblyVersion>2.0.0.0</AssemblyVersion>
678 <Member MemberName="RestoreFilePosition">
679 <MemberSignature Language="C#" Value="public void RestoreFilePosition (Mono.Unix.Native.FilePosition pos);" />
680 <MemberType>Method</MemberType>
682 <ReturnType>System.Void</ReturnType>
685 <Parameter Name="pos" Type="Mono.Unix.Native.FilePosition" />
689 A <see cref="T:Mono.Unix.Native.FilePosition" /> from which to
690 restore the file position.
692 <summary>Set the current file position saved in a
693 <see cref="T:Mono.Unix.Native.FilePosition" /> instance.</summary>
695 <para>The <see cref="T:Mono.Unix.Native.FilePosition" /> type holds
696 a platform-specific representation of a file position. This is useful
697 when the underlying standard C library cannot hold a file position in
698 a <c>long</c> data type. For example, on 32-bit platforms a
699 <c>long</c> is usually 32-bits in size; thus valid file
700 positions as used from <see cref="P:System.IO.Stream.Position" />
701 cannot be set past 2^31 bytes (effectively limiting you to 2GB files).
703 <para>Use this member if your underlying platform doesn't support
704 <see cref="M:System.IO.Stream.Seek" />ing within large files, or you
705 need to save text stream information.</para>
707 <altmember cref="M:Mono.Unix.Native.Stdlib.fsetpos" />
710 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
711 <AssemblyVersion>2.0.0.0</AssemblyVersion>
714 <Member MemberName="Rewind">
715 <MemberSignature Language="C#" Value="public void Rewind ();" />
716 <MemberType>Method</MemberType>
718 <ReturnType>System.Void</ReturnType>
722 <summary>Set <see cref="P:Mono.Unix.StdioFileStream.Position" />
723 to the beginning of the file.</summary>
724 <remarks>This is equivalent to <see cref="M:System.IO.Stream.Seek" />(0,
725 <see cref="F:System.IO.SeekOrigin.Begin" />);</remarks>
728 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
729 <AssemblyVersion>2.0.0.0</AssemblyVersion>
732 <Member MemberName="SaveFilePosition">
733 <MemberSignature Language="C#" Value="public void SaveFilePosition (Mono.Unix.Native.FilePosition pos);" />
734 <MemberType>Method</MemberType>
736 <ReturnType>System.Void</ReturnType>
739 <Parameter Name="pos" Type="Mono.Unix.Native.FilePosition" />
743 A <see cref="T:Mono.Unix.Native.FilePosition" /> in which to save
744 the current file position.
746 <summary>Save the current file position into a
747 <see cref="T:Mono.Unix.Native.FilePosition" /> instance.</summary>
749 <para>The <see cref="T:Mono.Unix.Native.FilePosition" /> type holds
750 a platform-specific representation of a file position. This is useful
751 when the underlying standard C library cannot hold a file position in
752 a <c>long</c> data type. For example, on 32-bit platforms a
753 <c>long</c> is usually 32-bits in size; thus valid file
754 positions as used from <see cref="P:System.IO.Stream.Position" />
755 cannot be set past 2^31 bytes (effectively limiting you to 2GB files).
757 <para>Use this member if your underlying platform doesn't support
758 <see cref="M:System.IO.Stream.Seek" />ing within large files, or you
759 need to save text stream information.</para>
761 <altmember cref="M:Mono.Unix.Native.Stdlib.fgetpos" />
764 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
765 <AssemblyVersion>2.0.0.0</AssemblyVersion>
768 <Member MemberName="Seek">
769 <MemberSignature Language="C#" Value="public override long Seek (long offset, System.IO.SeekOrigin origin);" />
770 <MemberType>Method</MemberType>
772 <ReturnType>System.Int64</ReturnType>
775 <Parameter Name="offset" Type="System.Int64" />
776 <Parameter Name="origin" Type="System.IO.SeekOrigin" />
779 <param name="offset">To be added.</param>
780 <param name="origin">To be added.</param>
781 <summary>To be added.</summary>
782 <returns>To be added.</returns>
783 <remarks>To be added.</remarks>
786 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
787 <AssemblyVersion>2.0.0.0</AssemblyVersion>
790 <Member MemberName="SetLength">
791 <MemberSignature Language="C#" Value="public override void SetLength (long value);" />
792 <MemberType>Method</MemberType>
794 <ReturnType>System.Void</ReturnType>
797 <Parameter Name="value" Type="System.Int64" />
800 <param name="value">To be added.</param>
801 <summary>To be added.</summary>
802 <remarks>To be added.</remarks>
805 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
806 <AssemblyVersion>2.0.0.0</AssemblyVersion>
809 <Member MemberName="StandardError">
810 <MemberSignature Language="C#" Value="public static readonly IntPtr StandardError;" />
811 <MemberType>Field</MemberType>
813 <ReturnType>System.IntPtr</ReturnType>
816 <summary>The standard error file stream.</summary>
818 <see cref="F:Mono.Unix.Native.Stdlib.stderr" /> global variable.</remarks>
821 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
822 <AssemblyVersion>2.0.0.0</AssemblyVersion>
825 <Member MemberName="StandardInput">
826 <MemberSignature Language="C#" Value="public static readonly IntPtr StandardInput;" />
827 <MemberType>Field</MemberType>
829 <ReturnType>System.IntPtr</ReturnType>
832 <summary>The standard input file stream.</summary>
834 <see cref="F:Mono.Unix.Native.Stdlib.stdin" /> global variable.</remarks>
837 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
838 <AssemblyVersion>2.0.0.0</AssemblyVersion>
841 <Member MemberName="StandardOutput">
842 <MemberSignature Language="C#" Value="public static readonly IntPtr StandardOutput;" />
843 <MemberType>Field</MemberType>
845 <ReturnType>System.IntPtr</ReturnType>
848 <summary>The standard output file stream.</summary>
850 <see cref="F:Mono.Unix.Native.Stdlib.stdout" /> global variable.</remarks>
853 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
854 <AssemblyVersion>2.0.0.0</AssemblyVersion>
857 <Member MemberName="Write">
858 <MemberSignature Language="C#" Value="public override void Write (byte[] buffer, int offset, int count);" />
859 <MemberType>Method</MemberType>
861 <ReturnType>System.Void</ReturnType>
864 <Parameter Name="buffer" Type="System.Byte[]" />
865 <Parameter Name="offset" Type="System.Int32" />
866 <Parameter Name="count" Type="System.Int32" />
869 <param name="buffer">To be added.</param>
870 <param name="offset">To be added.</param>
871 <param name="count">To be added.</param>
872 <summary>To be added.</summary>
873 <remarks>To be added.</remarks>
876 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
877 <AssemblyVersion>2.0.0.0</AssemblyVersion>