diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/KM_util.h | 12 | ||||
| -rwxr-xr-x | src/MXFTypes.h | 9 |
2 files changed, 10 insertions, 11 deletions
diff --git a/src/KM_util.h b/src/KM_util.h index f6a8935..9dcf846 100755 --- a/src/KM_util.h +++ b/src/KM_util.h @@ -512,8 +512,6 @@ namespace Kumu // class ByteString : public IArchive { - KM_NO_COPY_CONSTRUCT(ByteString); - protected: byte_t* m_Data; // pointer to memory area containing frame data ui32_t m_Capacity; // size of memory area pointed to by m_Data @@ -521,9 +519,19 @@ namespace Kumu public: ByteString(); + ByteString(const ByteString& rhs) { Copy(rhs); } ByteString(ui32_t cap); virtual ~ByteString(); + const ByteString& operator=(const ByteString& rhs) { Copy(rhs); return *this; } + + void Copy(const ByteString& rhs) { + if ( KM_SUCCESS(Capacity(rhs.Length())) ) + { + Set(rhs); + } + } + // Sets or resets the size of the internally allocated buffer. Result_t Capacity(ui32_t cap); diff --git a/src/MXFTypes.h b/src/MXFTypes.h index 555408d..0f38e9d 100755 --- a/src/MXFTypes.h +++ b/src/MXFTypes.h @@ -674,17 +674,8 @@ namespace ASDCP { public: Raw(); - Raw(const Raw& rhs) { Copy(rhs); } virtual ~Raw(); - const Raw& operator=(const Raw& rhs) { Copy(rhs); return *this; } - void Copy(const Raw& rhs) { - if ( KM_SUCCESS(Capacity(rhs.Length())) ) - { - Set(rhs); - } - } - // virtual bool Unarchive(Kumu::MemIOReader* Reader); virtual bool Archive(Kumu::MemIOWriter* Writer) const; |
