pack                package:rdyncall                R Documentation

_P_a_c_k _a_n_d _u_n_p_a_c_k_i_n_g _o_f _l_o_w-_l_e_v_e_l _s_t_r_u_c_t_u_r_e_d _d_a_t_a.

_D_e_s_c_r_i_p_t_i_o_n:

     Functions to read/write low-level structure data held as pointer
     or in a raw vector.

_U_s_a_g_e:

     .pack1(x, offset, sigchar, value)
     value <- .unpack1(x, offset, sigchar)
     offsetPtr(x, offset)

_A_r_g_u_m_e_n_t_s:

       x: An atomic vector or external pointer.

  offset: Positive integer specifying the offset from within the
          beginning (item 0) given in bytes.

 sigchar: Data type specifying the low-level representation of 'value'

   value: Value

_D_e_t_a_i_l_s:

     These functions can be used for manipulating C-level structure
     data. Atomic vectors are first adjusted to start at the first
     element (offset 0).

