#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "mach-info.h"
#include "ov.h"
#include "ovl.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
OCTAVE_EXPORT octave_value_list | Fhex2num (const octave_value_list &args, int) |
OCTAVE_EXPORT octave_value_list | Fnum2hex (const octave_value_list &args, int) |
static uint8_t | hex2nibble (unsigned char ch) |
template<typename T > | |
Array< T > | hex2num (const Array< std::string > &val, bool swap_bytes) |
static void | hex2num (const std::string &hex, void *num, size_t nbytes, bool swap_bytes) |
static bool | is_little_endian (bool is_float) |
static unsigned char | nibble2hex (unsigned char ch) |
template<typename T > | |
Cell | num2hex (const Array< T > &v, bool swap_bytes) |
static void | num2hex (const void *p, size_t n, char *hex, bool swap_bytes) |
OCTAVE_EXPORT octave_value_list Fhex2num | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 157 of file hex2num.cc.
References error(), is_little_endian(), octave_value(), print_usage(), retval, and swap_bytes().
OCTAVE_EXPORT octave_value_list Fnum2hex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 302 of file hex2num.cc.
References octave_value::char_array_value(), err_wrong_type_arg(), error(), octave_value::float_vector_value(), octave_value::int16_array_value(), octave_value::int32_array_value(), octave_value::int64_array_value(), octave_value::int8_array_value(), octave_value::is_char_matrix(), octave_value::is_double_type(), octave_value::is_int16_type(), octave_value::is_int32_type(), octave_value::is_int64_type(), octave_value::is_int8_type(), is_little_endian(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint64_type(), octave_value::is_uint8_type(), octave_value::iscomplex(), num2hex(), print_usage(), Cell::string_vector_value(), swap_bytes(), octave_value::uint16_array_value(), octave_value::uint32_array_value(), octave_value::uint64_array_value(), octave_value::uint8_array_value(), and octave_value::vector_value().
|
static |
Definition at line 90 of file hex2num.cc.
References Array< T >::dims(), hex2num(), m, Array< T >::numel(), swap_bytes(), and Array< T >::xelem().
|
static |
Definition at line 65 of file hex2num.cc.
References error(), hex2nibble(), and swap_bytes().
Referenced by hex2num().
|
inlinestatic |
Definition at line 39 of file hex2num.cc.
References octave::mach_info::flt_fmt_ieee_little_endian, octave::mach_info::native_float_format(), and octave::mach_info::words_little_endian().
Referenced by Fhex2num(), and Fnum2hex().
|
inlinestatic |
Definition at line 215 of file hex2num.cc.
Referenced by num2hex().
Definition at line 245 of file hex2num.cc.
References Array< T >::dims(), Array< T >::fortran_vec(), num2hex(), Array< T >::numel(), and swap_bytes().
|
inlinestatic |
Definition at line 226 of file hex2num.cc.
References n, nibble2hex(), and swap_bytes().
Referenced by Fnum2hex(), and num2hex().