ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- U:RDoc::AnyMethod[iI"ungetbyte:ETI"IO#ungetbyte;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"BPushes back bytes (passed as a parameter) onto ios, ;TI":such that a subsequent buffered read will return it. ;TI"KIt is only guaranteed to support a single byte, and only if ungetbyte ;TI"Nor ungetc has not already been called on ios since the previous ;TI"7read of at least a single byte from ios. ;TI"GHowever, it can support additional bytes if there is space in the ;TI"%internal buffer to allow for it.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"5f = File.new("testfile") #=> # ;TI")b = f.getbyte #=> 0x38 ;TI"(f.ungetbyte(b) #=> nil ;TI")f.getbyte #=> 0x38 ;T: @format0o; ; [I"PIf given an integer, only uses the lower 8 bits of the integer as the byte ;TI" to push.;T@o; ; [I"5f = File.new("testfile") #=> # ;TI"(f.ungetbyte(0x102) #=> nil ;TI"(f.getbyte #=> 0x2 ;T; 0o; ; [I"MCalling this method prepends to the existing buffer, even if the method ;TI"(has already been called previously:;T@o; ; [ I"5f = File.new("testfile") #=> # ;TI"(f.ungetbyte("ab") #=> nil ;TI"(f.ungetbyte("cd") #=> nil ;TI",f.read(5) #=> "cdab8" ;T; 0o; ; [I">Has no effect with unbuffered reads (such as IO#sysread).;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"Cios.ungetbyte(string) -> nil ios.ungetbyte(integer) -> nil ;T0[I" (p1);T@1FI"IO;TcRDoc::NormalClass00