diff options
| author | jhurst <jhurst@cinecert.com> | 2007-03-03 20:29:25 +0000 |
|---|---|---|
| committer | jhurst <> | 2007-03-03 20:29:25 +0000 |
| commit | 49e1347e14c2ea6ee69d7f879d2d05448da50403 (patch) | |
| tree | 29fe28eb1a9353f4c6a394bf656a9178963db922 /src/KM_util.h | |
| parent | d3fc58a004ab9ae9bbbb1ac7174fa00465563a90 (diff) | |
added new methods
Diffstat (limited to 'src/KM_util.h')
| -rwxr-xr-x | src/KM_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/KM_util.h b/src/KM_util.h index 6b2e78e..dbbdedf 100755 --- a/src/KM_util.h +++ b/src/KM_util.h @@ -203,6 +203,7 @@ namespace Kumu } inline void Set(const byte_t* value) { m_HasValue = true; memcpy(m_Value, value, SIZE); } + inline void Reset() { m_HasValue = false; memset(m_Value, 0, SIZE); } inline const byte_t* Value() const { return m_Value; } inline ui32_t Size() const { return SIZE; } @@ -395,6 +396,7 @@ namespace Kumu // copy the given data into the ByteString, set Length value. // Returns error if the ByteString is too small. Result_t Set(const byte_t* buf, ui32_t buf_len); + Result_t Set(const ByteString& Buf); inline virtual bool HasValue() const { return m_Length > 0; } |
