Method: FFI::Pointer#slice
- Defined in:
- ext/ffi_c/Pointer.c
#slice(offset, length) ⇒ Pointer
Return a new FFI::Pointer from an existing one. This pointer points on same contents from offset for a length length.
253 254 255 256 257 |
# File 'ext/ffi_c/Pointer.c', line 253
static VALUE
ptr_slice(VALUE self, VALUE rbOffset, VALUE rbLength)
{
return slice(self, NUM2LONG(rbOffset), NUM2LONG(rbLength));
}
|