X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2FKLV.h;h=d685cf974a9aabe159c9a051409b3fc9f583f3da;hb=830570c46c4d39a8a5767f83875e3ef2f79ecc98;hp=ba291b6170a6c7f0a169d53b945fb31326dfefa5;hpb=7c33dd683c5ef79630ae3bd5e1f8f8057d591388;p=asdcplib.git diff --git a/src/KLV.h b/src/KLV.h index ba291b6..d685cf9 100755 --- a/src/KLV.h +++ b/src/KLV.h @@ -102,12 +102,6 @@ inline const char* ui64sz(ui64_t i, char* buf) UL(const byte_t* value) : Kumu::Identifier(value) {} virtual ~UL() {} - const UL& operator=(const UL& rhs) { - if ( m_HasValue = rhs.m_HasValue ) - memcpy(m_Value, rhs.m_Value, SMPTE_UL_LENGTH); - return *this; - } - const char* EncodeString(char* str_buf, ui32_t buf_len) const; }; @@ -120,17 +114,13 @@ inline const char* ui64sz(ui64_t i, char* buf) UMID(const byte_t* value) : Kumu::Identifier(value) {} virtual ~UMID() {} - const UMID& operator=(const UMID& rhs) { - if ( m_HasValue = rhs.m_HasValue ) - memcpy(m_Value, rhs.m_Value, SMPTE_UMID_LENGTH); - return *this; - } - void MakeUMID(int Type); void MakeUMID(int Type, const UUID& ID); const char* EncodeString(char* str_buf, ui32_t buf_len) const; }; + const byte_t nil_UMID[SMPTE_UMID_LENGTH] = {0}; + const UMID NilUMID(nil_UMID); // struct MDDEntry