vg
tools for working with variation graphs
Namespaces | Functions
json2pb.h File Reference
#include <string>
#include <cstdio>

Namespaces

 google
 
 google::protobuf
 

Functions

void json2pb (google::protobuf::Message &msg, const char *buf, size_t size)
 
void json2pb (google::protobuf::Message &msg, FILE *fp)
 
void json2pb (google::protobuf::Message &msg, const std::string &data)
 
std::string pb2json (const google::protobuf::Message &msg)
 

Function Documentation

◆ json2pb() [1/3]

void json2pb ( google::protobuf::Message &  msg,
const char *  buf,
size_t  size 
)

◆ json2pb() [2/3]

void json2pb ( google::protobuf::Message &  msg,
const std::string &  data 
)

◆ json2pb() [3/3]

void json2pb ( google::protobuf::Message &  msg,
FILE *  fp 
)

◆ pb2json()

std::string pb2json ( const google::protobuf::Message &  msg)