Skip to content
Snippets Groups Projects
Commit 82f1e363 authored by Michael Davis's avatar Michael Davis
Browse files

[xrd_ssi_pb] OStreamBuffer serializes Protocol Buffer objects onto the stream

parent cce14eb6
No related branches found
No related tags found
No related merge requests found
......@@ -75,13 +75,12 @@ tmp_num_items = 0;
item.mutable_af()->set_disk_file_id("World");
item.set_copy_nb(++tmp_num_items);
Buffer *streambuf = new XrdSsiPb::StreamBuffer(dlen);
streambuf->serialize(item);
dlen = streambuf->bytesize();
XrdSsiPb::OStreamBuffer *streambuf = new XrdSsiPb::OStreamBuffer();
dlen = streambuf->serialize(item);
std::cerr << "Returning buffer with " << dlen << " bytes of data." << std::endl;
return buffer;
return streambuf;
}
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment