diff options
| author | mikey <mikey@cinecert.com> | 2012-08-07 23:48:10 +0000 |
|---|---|---|
| committer | mikey <> | 2012-08-07 23:48:10 +0000 |
| commit | 3685d92a3d067b79d6059e178c3861230a1531bb (patch) | |
| tree | 97c5c181b1e0c978d18a406fe129dd7d0a0aa500 /src/KM_util.h | |
| parent | 5884edb3a008e6eb139e507091b18728152dd497 (diff) | |
version bump
Diffstat (limited to 'src/KM_util.h')
| -rwxr-xr-x | src/KM_util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/KM_util.h b/src/KM_util.h index 177cff7..f4de54e 100755 --- a/src/KM_util.h +++ b/src/KM_util.h @@ -244,7 +244,7 @@ namespace Kumu virtual ~ArchivableString() {} bool HasValue() const { return ! this->empty(); } - ui32_t ArchiveLength() const { return static_cast<ui32_t>((sizeof(ui32_t) + this->size())|0xffffffff); } + ui32_t ArchiveLength() const { sizeof(ui32_t) + static_cast<ui32_t>(this->size()); } bool Archive(MemIOWriter* Writer) const { if ( Writer == 0 ) return false; @@ -453,6 +453,9 @@ namespace Kumu // Return the number of seconds since the Unix epoch UTC (1970-01-01T00:00:00+00:00) ui64_t GetCTime() const; + // Set internal time to the number of seconds since the Unix epoch UTC + void SetCTime(const ui64_t& ctime); + // Read and write the timestamp (always UTC) value as a byte string having // the following format: // | 16 bits int, big-endian | 8 bits | 8 bits | 8 bits | 8 bits | 8 bits | |
