Skip to content

KnightKnight27/flatbuffers_encoding_decoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatbuffers_encoding_decoding

FlatBuffers Usage Guide

FlatBuffers Logo

This guide provides step-by-step instructions on how to use FlatBuffers for C++ and Python. FlatBuffers is an efficient cross-platform serialization library that can be used to serialize data in a binary format.

Prerequisites

Before you begin, make sure you have the following prerequisites installed on your system:

  • Git
  • CMake
  • g++
  • Python (Python 3 recommended)

Getting Started

  1. Clone the FlatBuffers Repository:
    git clone https://github.com/google/flatbuffers.git
  2. Use CMAKE:
    cd flatbuffers && cmake -G "Unix Makefiles"
  3. cd flatbuffers && make
  4. cd flatbuffers && sudo ln -s /content/flatbuffers/flatc /usr/local/bin/flatc
  5. cd flatbuffers && chmod +x /content/flatbuffers/flatc
  6. Make the c++ headers for corresponding schema file.
    flatc -c client.fbs
  7. g++ command to compile encrypt.cpp file and execute it
    g++ -I flatbuffers/include -o e encrypt.cpp && ./e 
  8. Make Python generated files for it's client.fbs
    flatc --python client.fbs 
  9. Decoder to read/deserialize the bytes.
    python decoder.py 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published