Method: U::String#bytes

Defined in:
ext/u/rb_u_string_each_byte.c

#bytesArray<Fixnum>

Returns The bytes of the receiver.

Returns:

  • (Array<Fixnum>)

    The bytes of the receiver.



40
41
42
43
44
45
46
# File 'ext/u/rb_u_string_each_byte.c', line 40

VALUE
rb_u_string_bytes(VALUE self)
{
        struct yield_array y = YIELD_ARRAY_INIT;
        each(self, &y.yield);
        return y.array;
}