#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, std::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, std::size_t n, char *hex, bool swap_bytes) |
OCTAVE_EXPORT octave_value_list Fhex2num | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 159 of file hex2num.cc.
References error(), is_little_endian(), octave_value::length(), octave_value(), print_usage(), and swap_bytes().
OCTAVE_EXPORT octave_value_list Fnum2hex | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 304 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 92 of file hex2num.cc.
References Array< T, Alloc >::dims(), hex2num(), m, Array< T, Alloc >::numel(), swap_bytes(), and Array< T, Alloc >::xelem().
|
static |
Definition at line 67 of file hex2num.cc.
References error(), hex2nibble(), and swap_bytes().
Referenced by hex2num().
|
inlinestatic |
Definition at line 41 of file hex2num.cc.
References flt_fmt_ieee_little_endian, native_float_format(), and words_little_endian().
Referenced by Fhex2num(), and Fnum2hex().
|
inlinestatic |
Definition at line 217 of file hex2num.cc.
Referenced by num2hex().
Definition at line 247 of file hex2num.cc.
References Array< T, Alloc >::data(), Array< T, Alloc >::dims(), num2hex(), Array< T, Alloc >::numel(), and swap_bytes().
|
inlinestatic |
Definition at line 228 of file hex2num.cc.
References n, nibble2hex(), and swap_bytes().
Referenced by Fnum2hex(), and num2hex().