D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Buffer
/
Filename :
write-i.ri
back
Copy
U:RDoc::AnyMethod[iI" write:ETI"IO::Buffer#write;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"XWrite at least +length+ bytes from the buffer starting at +offset+, into the +io+. ;TI"0If an error occurs, return <tt>-errno</tt>.;To:RDoc::Markup::BlankLine o; ; [I"NIf +length+ is not given or +nil+, it defaults to the size of the buffer ;TI".minus the offset, i.e. the entire buffer.;T@o; ; [I"JIf +length+ is zero, exactly one <tt>write</tt> operation will occur.;T@o; ; [I"NIf +offset+ is not given, it defaults to zero, i.e. the beginning of the ;TI"buffer.;T@o:RDoc::Markup::Verbatim; [I")out = File.open('output.txt', 'wb') ;TI"-IO::Buffer.for('1234567').write(out, 3) ;T:@format0o; ; [I"?This leads to +123+ being written into <tt>output.txt</tt>;T: @fileI"io_buffer.c;T:0@omit_headings_from_table_of_contents_below0I"?write(io, [length, [offset]]) -> written length or -errno ;T0[ I"(*args);T@"FI"Buffer;TcRDoc::NormalClass00