Sha256: f1da03a3bf8f844e4be4be654420748cb66e36726c652de67ac968dc493d842d

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"String#getbyte:EF:@parameters[:@files[[I"
string.c;T0:@current_file_has_commentsF:
@name:getbyte:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"3returns the <i>index</i>th byte as an integer.;F:@objectIu:YARD::StubProxyString#getbyte;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"getbyte(index);F;IC;";F;Iu;String#getbyte;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"
0 .. 255;F;0:	@allI"@return [0 .. 255];F;[[:
index0;Iu;String#getbyte;F; I"creturns the <i>index</i>th byte as an integer.


@overload getbyte(index)
  @return [0 .. 255];F:@namespaceIu;String;F:@docstring_extra0:@sourceI"/*
 *  call-seq:
 *     str.getbyte(index)          -> 0 .. 255
 *
 *  returns the <i>index</i>th byte as an integer.
 */
static VALUE
rb_str_getbyte(VALUE str, VALUE index)
{
    long pos = NUM2LONG(index);

    if (pos < 0)
        pos += RSTRING_LEN(str);
    if (pos < 0 ||  RSTRING_LEN(str) <= pos)
        return Qnil;

    return INT2FIX((unsigned char)RSTRING_PTR(str)[pos]);
};F

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/String/getbyte_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/String/getbyte_i.dat