Method: DataView#set_uint32
- Defined in:
- ext/type_array/data_view.c
#set_uint32(2, 20) ⇒ nil
Sets an unsigned int32 value at a given offset, using the provided endianness.
Examples
buf = ArrayBuffer.new(100) => ArrayBuffer
view = DataView.new(buf) => DataView
view.set_uint32(2, 758) => nil
399 400 401 402 403 404 |
# File 'ext/type_array/data_view.c', line 399
static VALUE rb_data_view_set_uint32(int argc, VALUE *argv, VALUE obj)
{
DataViewAset(obj);
rb_type_array_set_uint32(buf->buf, index, (unsigned int)NUM2INT(item), little_endian);
return Qnil;
}
|