Skip to content

Save files to and load files from Protocol Buffers Messages (implemented in C++).

License

Notifications You must be signed in to change notification settings

duruyao/protobuf-rw-file

Repository files navigation

Protocol Buffers Example of Saving/Loading Files

1. Prerequisites

2. Unix Builds

Use CMake to build targets.

cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${PWD}"
cmake --build build --target all -- --jobs=4
cmake --build build --target install

3. Usage

Read a file into protobuf messages and write protobuf messages to another file.

$ ./protobuf_rw_file photo.jpg photo-copy.jpg

About

Save files to and load files from Protocol Buffers Messages (implemented in C++).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published