Universal Serialization/Deserialization Shim for the DeMoD Communications Framework
531
Universal Serialization/Deserialization Shim for the DeMoD Communications Framework
This repository provides Docker images for DCF Serialize, a high-performance, system-agnostic binary serialization library designed for distributed systems, real-time gaming, and IoT applications.
The library is pure C11 with no external dependencies and is built and installed in the images.
latest, 5.2.0 — Minimal runtime image with the shared library installed5.2.0-dev, dev — Development image with build tools (gcc, make, gdb, valgrind, etc.)5.2.0-test, test — Test runner image (executes the library test suite on start)FROM alh477/dcf-serialize:latest
# Copy your source and build your app that links against -ldcf_serialize
COPY . /src
WORKDIR /src
RUN gcc -o myapp myapp.c -ldcf_serialize
CMD ["./myapp"]
docker run --rm -it -v $(pwd):/src alh477/dcf-serialize:dev
# Inside container:
cd /src
make # or gcc ... -ldcf_serialize
docker run --rm alh477/dcf-serialize:test
┌──────────┬─────────┬──────────┬───────┬────────────┬──────────┬──────────┬──────────┐
│ Magic │ Version │ MsgType │ Flags │ PayloadLen │ Sequence │ Payload │ CRC32 │
│ 4 bytes │ 2 bytes │ 2 bytes │ 1 byte│ 4 bytes │ 4 bytes │ N bytes │ 4 bytes │
└──────────┴─────────┴──────────┴───────┴────────────┴──────────┴──────────┴──────────┘
The library provides a full serialization/deserialization API in dcf_serialize.h. Key features:
See the header file in the repository for full documentation.
Source code and full documentation:
https://github.com/alh477/dcf-serialize
Issues: https://github.com/alh477/dcf-serialize/issues
Licensed under BSD-3-Clause © 2024-2025 DeMoD LLC.
Content type
Image
Digest
sha256:9d41d7b7c…
Size
11.8 MB
Last updated
8 months ago
docker pull alh477/dcf-serialize