The purpose of this note is to explain how to write functions that allocate memory. One basic principle is that one should see the garbage collector as an adversary, which always tries to deallocate memory. You should protect your data against it. Here are a few examples. Continue reading
Author Archives: orchidsdev
The ovm_extern_t type
The ovm_extern_t
type is a catch-all OrchIDS type, for all foreign data structures. Continue reading
The ovm_snmpoid_t type
The ovm_snmpoid_t
type is the OrchIDS type of SNMP object identifiers. Continue reading
The ovm_float_t type
The ovm_float_t
type is the OrchIDS incarnation of the data type double
of 64-bit floating point values. Continue reading
The ovm_regex_t type
The ovm_regex_t
type is the OrchIDS type of regular expression matchers. Continue reading
The ovm_timeval_t type
The ovm_timeval_t
type is the OrchIDS incarnation of the data type struct timeval
of times and durations. Continue reading
The ovm_ipv4_t type
The ovm_ipv4_t
type is the OrchIDS type of IPv4 addresses.
Continue reading
The ovm_ctime_t type
The ovm_ctime_t
type is the OrchIDS incarnation of the data type time_t
of times (not durations: durations are represented as machine integers, of type ovm_int_t
). Continue reading
The ovm_vstr_t type
The ovm_vstr_t
type is the OrchIDS type of virtual character strings. Strings are fixed-size arrays of chars, and are implemented as the ovm_str_t
type. On the opposite, virtual character strings are merely pointers to a subinterval of an actual character string. Continue reading
The ovm_str_t type
The ovm_str_t
type is the OrchIDS type of (fixed-size) character strings.