Byte-swap functions now take size_t types for array lengths