forked from fuzziqersoftware/phosg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
24 lines (20 loc) · 936 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Phosg is a basic C++ wrapper library around some common C routines.
A short summary of its contents:
- Read-write locks and guards (C++ doesn't have these in std as of C++14)
- Byteswapping functions
- Directory listing, smart-pointer fopen and stat functions
- Basic image manipulation/drawing
- Basic JSON (de)serialization
- Python Pickle (de)serialization for basic types
- LRU set implementation
- Network helpers (IP address parsing/formatting, listen/connect sockets)
- Process listing and name <> PID mapping
- String helpers like printf, split, time/size formatting, etc.
Phosg also includes an executable (jsonformat) that reformats JSON and converts
to/from Python's pickle format.
Building & installing on macOS or Linux:
0. Make sure you have Make, g++ and Python 2 and 3 installed.
1. `make`
2. `sudo make install`
Building on Windows is not straightforward. Install MinGW-w64, then read the
comments in the makefile.