A library that implements a cross-browser XDR constructor