hexdump               package:Rstreams               R Documentation

_D_i_s_p_l_a_y _a _H_e_x _D_u_m_p _o_f _a _S_t_r_e_a_m

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

     Displays a mixed hex and ascii dump of the content of a stream.

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

       hexdump(s, len)

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

       s: an already opened stream.

     len: optional: how many bytes to read and display.

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

     Reads bytes from the stream and displays them on the standard
     output location, in a mixed hex and ascii display.

     The default is to dump the rest of the stream; if a shorter length
     is given, only that many bytes will be read and displayed.

_V_a_l_u_e:

     none

_S_e_e _A_l_s_o:

     `openstream'

_E_x_a_m_p_l_e_s:

     s <- openstream("mydata", "write")
     writeint(s, 1:100, 1)
     closestream(s)
     s <- openstream("mydata", "read")
     hexdump(s)
     seekstream(s,0)
     hexdump(s,10)
     closestream(s)
     unlink("mydata")

