Method: DataView#to_s
- Defined in:
- ext/type_array/data_view.c
#to_s ⇒ String
Returns a String (binary) representation of the underlying buffer managed by this DataView instance.
Examples
buf = ArrayBuffer.new("buffer") => ArrayBuffer
view = DataView.new(buf) => DataView
view.to_s => "buffer"
541 542 543 544 545 |
# File 'ext/type_array/data_view.c', line 541
static VALUE rb_data_view_to_s(VALUE obj)
{
GetDataView(obj);
return rb_array_buffer_to_s(view->buf);
}
|