Apache Mesos
Namespaces | Functions
protobuf Namespace Reference

Namespaces

 internal
 

Functions

Try< Nothingwrite (int_fd fd, const google::protobuf::Message &message)
 
template<typename T >
Try< Nothingwrite (int_fd fd, const google::protobuf::RepeatedPtrField< T > &messages)
 
template<typename T >
Try< Nothingwrite (const std::string &path, const T &t, bool sync=false)
 
Try< Nothingappend (const std::string &path, const google::protobuf::Message &message, bool sync=false)
 
template<typename T >
Try< T > deserialize (const std::string &value)
 
template<typename T >
Try< std::string > serialize (const T &t)
 
template<typename T >
Result< T > read (int_fd fd, bool ignorePartial=false, bool undoFailed=false)
 
template<typename T >
Result< T > read (const std::string &path)
 
template<typename T >
Try< T > parse (const JSON::Value &value)
 

Function Documentation

Try<Nothing> protobuf::append ( const std::string &  path,
const google::protobuf::Message &  message,
bool  sync = false 
)
inline
template<typename T >
Try<T> protobuf::deserialize ( const std::string &  value)
template<typename T >
Try<T> protobuf::parse ( const JSON::Value value)
template<typename T >
Result<T> protobuf::read ( int_fd  fd,
bool  ignorePartial = false,
bool  undoFailed = false 
)
template<typename T >
Result<T> protobuf::read ( const std::string &  path)
template<typename T >
Try<std::string> protobuf::serialize ( const T &  t)
Try<Nothing> protobuf::write ( int_fd  fd,
const google::protobuf::Message &  message 
)
inline
template<typename T >
Try<Nothing> protobuf::write ( int_fd  fd,
const google::protobuf::RepeatedPtrField< T > &  messages 
)
template<typename T >
Try<Nothing> protobuf::write ( const std::string &  path,
const T &  t,
bool  sync = false 
)