| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Encoding/Converter/ |
Upload File : |
U:RDoc::AnyMethod[iI"putback:ETI" Encoding::Converter#putback;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"
call-seq;To:RDoc::Markup::Verbatim; [I"-ec.putback -> string
;TI"-ec.putback(max_numbytes) -> string
;T:@format0o;
; [I"0Put back the bytes which will be converted.;To:RDoc::Markup::BlankLine o;
; [I":The bytes are caused by invalid_byte_sequence error. ;TI"DWhen invalid_byte_sequence error, some bytes are discarded and ;TI"4some bytes are buffered to be converted later. ;TI"'The latter bytes can be put back. ;TI"It can be observed by ;TI"<Encoding::InvalidByteSequenceError#readagain_bytes and ;TI"+Encoding::Converter#primitive_errinfo.;T@o;; [I"<ec = Encoding::Converter.new("utf-16le", "iso-8859-1")
;TI"src = "\x00\xd8\x61\x00"
;TI"dst = ""
;TI"Cp ec.primitive_convert(src, dst) #=> :invalid_byte_sequence
;TI"gp ec.primitive_errinfo #=> [:invalid_byte_sequence, "UTF-16LE", "UTF-8", "\x00\xD8", "a\x00"]
;TI",p ec.putback #=> "a\x00"
;TI"Kp ec.putback #=> "" # no more bytes to put back;T;0:
@fileI"transcode.c;T:0@omit_headings_from_table_of_contents_below000[ I"(p1 = v1);T@(FI"Converter;TcRDoc::NormalClass00