Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 544 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 544 Bytes

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