mem: Add a readString method to the PortProxy which takes a char *.

This version takes a char * instead of an std::string &, and a maximum
length to fill in like strncpy. This is intended to be a replacement
for the CopyStringOut function.

Change-Id: Ib661924a3fa7e05761d572ffecbe2c0cc8659d48
Tested-by: kokoro <>
Reviewed-by: Jason Lowe-Power <>
Reviewed-by: Brandon Potter <>
Reviewed-by: Andreas Sandberg <>
Maintainer: Andreas Sandberg <>
2 files changed