Add templated read/write to support::endian.