k2hpx_da_get_length k2hash Functions k2hpx_da_get_read_offset

k2hpx_da_get_offset

Gets the k2hash direct access file offset with read-write access mode

Description

array k2hpx_da_get_offset ( mixed $dahandle_res )

Gets the k2hash direct access file offset with read-write access mode.

Note

The k2hash direct access handle is a handler to provide quick access to the specific part of large data using offset.

Parameters

Return Values

Returns the k2hash direct access file offset with read-write access mode.

Examples

<?php
$handle = k2hpx_open_mem();
k2hpx_set_value($handle, "test", "value");
$dahandle = k2hpx_da_get_handle_rw($handle, "test");
var_dump(k2hpx_da_get_offset($dahandle));
k2hpx_da_free($dahandle);
k2hpx_close($handle);
?>

The above example will output:

array(2) {
  [0]=>
  int(0)
  [1]=>
  int(0)
}

See Also

k2hpx_da_get_length k2hash Functions k2hpx_da_get_read_offset