D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Filename :
advise-i.ri
back
Copy
U:RDoc::AnyMethod[iI"advise:ETI"IO#advise;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"Invokes Posix system call ;TI"D{posix_fadvise(2)}[https://linux.die.net/man/2/posix_fadvise], ;TI"Gwhich announces an intention to access data from the current file ;TI"in a particular manner.;To:RDoc::Markup::BlankLine o; ; [I"6The arguments and results are platform-dependent.;T@o; ; [I"'The relevant data is specified by:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"4+offset+: The offset of the first byte of data.;To;;0; [o; ; [I"0+len+: The number of bytes to be accessed; ;TI"Hif +len+ is zero, or is larger than the number of bytes remaining, ;TI"*all remaining bytes will be accessed.;T@o; ; [I"7Argument +advice+ is one of the following symbols:;T@o;; ;;[o;;0; [o; ; [I"6+:normal+: The application has no advice to give ;TI"6about its access pattern for the specified data. ;TI"LIf no advice is given for an open file, this is the default assumption.;To;;0; [o; ; [I"V+:sequential+: The application expects to access the specified data sequentially ;TI"2(with lower offsets read before higher ones).;To;;0; [o; ; [I"D+:random+: The specified data will be accessed in random order.;To;;0; [o; ; [I"?+:noreuse+: The specified data will be accessed only once.;To;;0; [o; ; [I"I+:willneed+: The specified data will be accessed in the near future.;To;;0; [o; ; [I"M+:dontneed+: The specified data will not be accessed in the near future.;T@o; ; [I"&Not implemented on all platforms.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"0advise(advice, offset = 0, len = 0) -> nil ;T0[ I"(p1, p2 = v2, p3 = v3);T@OFI"IO;TcRDoc::NormalClass00