Urbi SDK Remote for C++  2.7.5
ubinary.hxx
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010, Gostai S.A.S.
00003  *
00004  * This software is provided "as is" without warranty of any kind,
00005  * either expressed or implied, including but not limited to the
00006  * implied warranties of fitness for a particular purpose.
00007  *
00008  * See the LICENSE file for more information.
00009  */
00010 
00012 
00013 namespace urbi
00014 {
00015 
00016   inline
00017   BinaryData::BinaryData()
00018     : data(0), size(0)
00019   {}
00020 
00021   inline
00022   BinaryData::BinaryData(void *d, size_t s)
00023     : data(d), size(s)
00024   {}
00025 
00026   inline
00027   void BinaryData::clear()
00028   {
00029     free(data);
00030   }
00031 
00032 } // end namespace urbi