47 tlv() { type = 0; value = NULL; };
49 tlv(
const tlv & ref) { copy_from(ref); };
52 const tlv & operator = (
const tlv & ref) {
detruit(); copy_from(ref);
return *
this; };
61 U_16 get_type()
const {
return type; };
62 void set_type(U_16 val) { type = val; };
63 void set_contents(
const memory_file & contents);
64 void get_contents(memory_file & contents)
const;
66 #ifdef LIBDAR_SPECIAL_ALLOC
67 USE_SPECIAL_ALLOC(
tlv);
74 void copy_from(
const tlv & ref);
75 void detruit() {
if(value != NULL) {
delete value; value = NULL; } };