HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/IO/pread-i.ri
U:RDoc::AnyMethod[iI"
pread:ETI"
IO#pread;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"MReads <i>maxlen</i> bytes from <em>ios</em> using the pread system call ;TI"Cand returns them as a string without modifying the underlying ;TI"Ldescriptor offset.  This is advantageous compared to combining IO#seek ;TI"Land IO#read in that it is atomic, allowing multiple threads/process to ;TI"Ishare the same IO object for reading the file at various locations. ;TI"<This bypasses any userspace buffering of the IO layer. ;TI"@If the optional <i>outbuf</i> argument is present, it must ;TI"6reference a String, which will receive the data. ;TI"BRaises SystemCallError on error, EOFError at end of file and ;TI"HNotImplementedError if platform does not implement the system call.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"DFile.write("testfile", "This is line one\nThis is line two\n")
;TI""File.open("testfile") do |f|
;TI"F  p f.read           # => "This is line one\nThis is line two\n"
;TI".  p f.pread(12, 0)   # => "This is line"
;TI",  p f.pread(9, 8)    # => "line one\n"
;TI"end;T:@format0:
@fileI"	io.c;T:0@omit_headings_from_table_of_contents_below0I"6ios.pread(maxlen, offset[, outbuf])    -> string
;T0[I"(p1, p2, p3 = v3);T@ FI"IO;TcRDoc::NormalClass00