Changeset 25:0e01416b4afb in rrlib_util


Ignore:
Timestamp:
22.04.2011 19:47:43 (9 years ago)
Author:
Max Reichardt <reichardt@…>
Branch:
default
Phase:
public
Convert:
svn:dcce5f72-5200-4218-9373-75d9081937af/trunk@32
Message:

modified serialization of tTime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tTime.cpp

    r22 r25  
    3232rrlib::serialization::tOutputStream &rrlib::util::operator << (rrlib::serialization::tOutputStream &stream, const rrlib::util::tTime &t) 
    3333{ 
    34   stream << t.TvSec() << t.TvUSec(); 
     34  stream.WriteLong(t.TvSec()); 
     35  stream.WriteLong(t.TvUSec()); 
    3536  return stream; 
    3637} 
     
    3839rrlib::serialization::tInputStream &rrlib::util::operator >> (rrlib::serialization::tInputStream &stream, rrlib::util::tTime &t) 
    3940{ 
    40   long s, us; 
    41   stream >> s >> us; 
    42   t.SetTvSec(s); 
    43   t.SetTvUSec(us); 
     41  t.SetTvSec(static_cast<long>(stream.ReadLong())); 
     42  t.SetTvUSec(static_cast<long>(stream.ReadLong())); 
    4443  return stream; 
    4544} 
Note: See TracChangeset for help on using the changeset viewer.