50 tlv() { type = 0; value = NULL; };
52 tlv(
const tlv & ref) { copy_from(ref); };
55 const tlv & operator = (
const tlv & ref) {
detruit(); copy_from(ref);
return *
this; };
64 U_16 get_type()
const {
return type; };
65 void set_type(U_16 val) { type = val; };
66 void set_contents(
const memory_file & contents);
67 void get_contents(memory_file & contents)
const;
69 #ifdef LIBDAR_SPECIAL_ALLOC
70 USE_SPECIAL_ALLOC(
tlv);
77 void copy_from(
const tlv & ref);
78 void detruit() {
if(value != NULL) {
delete value; value = NULL; } };