$23 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/ruby18/share/ri/1.8/system/IO/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/IO//readpartial-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Reads at most <em>maxlen</em> bytes from the I/O stream. It blocks only if <em>ios</em> has no data immediately available. It doesn't block if some data available. If the optional <em>outbuf</em> argument is present, it must reference a String, which will receive the data. It raises <tt>EOFError</tt> on end of file.
- !ruby/struct:SM::Flow::P 
  body: readpartial is designed for streams such as pipe, socket, tty, etc. It blocks only when no data immediately available. This means that it blocks only when following all conditions hold.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: the buffer in the IO object is empty.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: the content of the stream is empty.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: the stream is not reached to EOF.
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: When readpartial blocks, it waits data or EOF on the stream. If some data is reached, readpartial returns with the data. If EOF is reached, readpartial raises EOFError.
- !ruby/struct:SM::Flow::P 
  body: When readpartial doesn't blocks, it returns or raises immediately. If the buffer is not empty, it returns the data in the buffer. Otherwise if the stream has some content, it returns the data in the stream. Otherwise if the stream is reached to EOF, it raises EOFError.
- !ruby/struct:SM::Flow::VERB 
  body: "   r, w = IO.pipe           #               buffer          pipe content\n   w &lt;&lt; &quot;abc&quot;               #               &quot;&quot;              &quot;abc&quot;.\n   r.readpartial(4096)      #=&gt; &quot;abc&quot;       &quot;&quot;              &quot;&quot;\n   r.readpartial(4096)      # blocks because buffer and pipe is empty.\n\n   r, w = IO.pipe           #               buffer          pipe content\n   w &lt;&lt; &quot;abc&quot;               #               &quot;&quot;              &quot;abc&quot;\n   w.close                  #               &quot;&quot;              &quot;abc&quot; EOF\n   r.readpartial(4096)      #=&gt; &quot;abc&quot;       &quot;&quot;              EOF\n   r.readpartial(4096)      # raises EOFError\n\n   r, w = IO.pipe           #               buffer          pipe content\n   w &lt;&lt; &quot;abc\\ndef\\n&quot;        #               &quot;&quot;              &quot;abc\\ndef\\n&quot;\n   r.gets                   #=&gt; &quot;abc\\n&quot;     &quot;def\\n&quot;         &quot;&quot;\n   w &lt;&lt; &quot;ghi\\n&quot;             #               &quot;def\\n&quot;         &quot;ghi\\n&quot;\n   r.readpartial(4096)      #=&gt; &quot;def\\n&quot;     &quot;&quot;              &quot;ghi\\n&quot;\n   r.readpartial(4096)      #=&gt; &quot;ghi\\n&quot;     &quot;&quot;              &quot;&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: "Note that readpartial behaves similar to sysread. The differences are:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: If the buffer is not empty, read from the buffer instead of &quot;sysread for buffered IO (IOError)&quot;.
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: It doesn't cause Errno::EAGAIN and Errno::EINTR. When readpartial meets EAGAIN and EINTR by read system call, readpartial retry the system call.
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: The later means that readpartial is nonblocking-flag insensitive. It blocks on the situation IO#sysread causes Errno::EAGAIN as if the fd is blocking mode.
full_name: IO#readpartial
is_singleton: false
name: readpartial
params: |
  ios.readpartial(maxlen)              => string
  ios.readpartial(maxlen, outbuf)      => outbuf

visibility: public


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
%3c%3c-i.yaml
0.547 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
binmode-i.yaml
0.374 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
block_scanf-i.yaml
0.196 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
bytes-i.yaml
0.555 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cdesc-IO.yaml
7.742 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chars-i.yaml
0.603 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
close-i.yaml
0.598 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
close_read-i.yaml
0.703 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
close_write-i.yaml
0.749 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
closed%3f-i.yaml
0.673 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
each-i.yaml
0.796 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
each_byte-i.yaml
0.622 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
each_char-i.yaml
0.61 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
each_line-i.yaml
0.806 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
eof%3f-i.yaml
1.152 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
eof-i.yaml
1.15 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fcntl-i.yaml
0.649 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fileno-i.yaml
0.459 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
flush-i.yaml
0.584 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
for_fd-c.yaml
0.253 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
foreach-c.yaml
0.657 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fsync-i.yaml
0.577 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
getbyte-i.yaml
0.447 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
getc-i.yaml
0.441 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
gets-i.yaml
0.874 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
inspect-i.yaml
0.263 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
ioctl-i.yaml
0.572 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
isatty-i.yaml
0.513 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
lineno%3d-i.yaml
0.73 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
lineno-i.yaml
0.797 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
lines-i.yaml
0.663 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
new-c.yaml
0.64 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
open-c.yaml
0.585 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pid-i.yaml
0.695 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pipe-c.yaml
1.273 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
popen-c.yaml
2.028 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pos%3d-i.yaml
0.422 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pos-i.yaml
0.464 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
print-i.yaml
0.881 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
printf-i.yaml
0.375 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
putc-i.yaml
0.586 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
puts-i.yaml
0.769 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
read-c.yaml
0.764 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
read-i.yaml
0.951 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
read_nonblock-i.yaml
0.976 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readbyte-i.yaml
0.313 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readbytes-i.yaml
0.462 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readchar-i.yaml
0.313 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readline-i.yaml
0.323 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readlines-c.yaml
0.524 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readlines-i.yaml
0.679 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
readpartial-i.yaml
3.722 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
reopen-i.yaml
0.731 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rewind-i.yaml
0.536 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
scanf-i.yaml
1.244 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
seek-i.yaml
1.013 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
select-c.yaml
0.315 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
soak_up_spaces-i.yaml
0.175 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
stat-i.yaml
0.529 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sync%3d-i.yaml
0.615 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sync-i.yaml
0.531 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sysopen-c.yaml
0.411 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sysread-i.yaml
0.634 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
sysseek-i.yaml
0.609 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
syswrite-i.yaml
0.6 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
tell-i.yaml
0.466 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
to_i-i.yaml
0.209 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
to_io-i.yaml
0.231 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
tty%3f-i.yaml
0.509 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
ungetc-i.yaml
0.809 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
write-i.yaml
0.717 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
write_nonblock-i.yaml
0.621 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF