Or a pointer to where I can find this in a Stellar repo?
Stellar-core itself uses xdrpp, written in C++, so it's safe to use that.