mem: Use a const T & in write<> to avoid an unnecessary copy.

If the type T is complex/large, the it makes sense to access it in place
and not copy it and then not modify it.

Change-Id: Idd24be4fbba636375637ff72b1ba5ee32eb76215
Tested-by: kokoro <>
Reviewed-by: Jason Lowe-Power <>
Reviewed-by: Andreas Sandberg <>
Maintainer: Andreas Sandberg <>
1 file changed