D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Buffer
/
Filename :
get_value-i.ri
back
Copy
U:RDoc::AnyMethod[iI"get_value:ETI"IO::Buffer#get_value;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QRead from buffer a value of +type+ at +offset+. +buffer_type+ should be one ;TI"of symbols:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"$+:U8+: unsigned integer, 1 byte;To;;0; [o; ; [I""+:S8+: signed integer, 1 byte;To;;0; [o; ; [I"5+:u16+: unsigned integer, 2 bytes, little-endian;To;;0; [o; ; [I"2+:U16+: unsigned integer, 2 bytes, big-endian;To;;0; [o; ; [I"3+:s16+: signed integer, 2 bytes, little-endian;To;;0; [o; ; [I"0+:S16+: signed integer, 2 bytes, big-endian;To;;0; [o; ; [I"5+:u32+: unsigned integer, 4 bytes, little-endian;To;;0; [o; ; [I"2+:U32+: unsigned integer, 4 bytes, big-endian;To;;0; [o; ; [I"3+:s32+: signed integer, 4 bytes, little-endian;To;;0; [o; ; [I"0+:S32+: signed integer, 4 bytes, big-endian;To;;0; [o; ; [I"5+:u64+: unsigned integer, 8 bytes, little-endian;To;;0; [o; ; [I"2+:U64+: unsigned integer, 8 bytes, big-endian;To;;0; [o; ; [I"3+:s64+: signed integer, 8 bytes, little-endian;To;;0; [o; ; [I"0+:S64+: signed integer, 8 bytes, big-endian;To;;0; [o; ; [I"*+:f32+: float, 4 bytes, little-endian;To;;0; [o; ; [I"'+:F32+: float, 4 bytes, big-endian;To;;0; [o; ; [I"++:f64+: double, 8 bytes, little-endian;To;;0; [o; ; [I"(+:F64+: double, 8 bytes, big-endian;T@o; ; [I"SA buffer type refers specifically to the type of binary buffer that is stored ;TI"Kin the buffer. For example, a +:u32+ buffer type is a 32-bit unsigned ;TI"%integer in little-endian format.;T@o:RDoc::Markup::Verbatim; [ I"string = [1.5].pack('f') ;TI"# => "\x00\x00\xC0?" ;TI"/IO::Buffer.for(string).get_value(:f32, 0) ;TI" # => 1.5;T:@format0: @fileI"io_buffer.c;T:0@omit_headings_from_table_of_contents_below0I"/get_value(buffer_type, offset) -> numeric ;T0[ I" (p1, p2);T@wFI"Buffer;TcRDoc::NormalClass00