Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
libcargo-fd

cargo file descriptor interface More...

Functions

template<class Cargo >
void cargo::loadFromFD (const int fd, Cargo &visitable)
 Load binary data from a file/socket/pipe represented by the fd. More...
 
template<class Cargo >
void cargo::saveToFD (const int fd, const Cargo &visitable)
 Save binary data to a file/socket/pipe represented by the fd. More...
 

Detailed Description

cargo file descriptor interface

Function Documentation

template<class Cargo >
void cargo::loadFromFD ( const int  fd,
Cargo &  visitable 
)

Load binary data from a file/socket/pipe represented by the fd.

Parameters
fdfile descriptor
visitablevisitable structure to load
template<class Cargo >
void cargo::saveToFD ( const int  fd,
const Cargo &  visitable 
)

Save binary data to a file/socket/pipe represented by the fd.

Parameters
fdfile descriptor
visitablevisitable structure to save