Template Class CapWriter
Defined in File CapnpBinary.hpp
Class Documentation
-
template<typename DType>
class CapWriter Capnproto binary data Writer Wrapper Class.
- Template Parameters:
DType – Binary Schema type
Public Functions
-
CapWriter() = default
-
~CapWriter() = default
-
inline bool open(const std::vector<kj::byte> &capnpBinary)
wraps binary data
- Parameters:
capnpBinary – binary data
- Returns:
true
- Returns:
false
-
inline bool makeNew()
makes empty data and initialize
- Returns:
true
- Returns:
false
-
inline std::vector<kj::byte> out()
makes binary data and returns it.
- Returns:
std::vector<kj::byte> the binary data