decodeStringValue function

String decodeStringValue(
  1. List<int> data
)

Decode a UTF-8 string from raw length-delimited data.

The caller has already extracted the raw bytes from the wire (after reading the tag and length prefix). This function simply performs UTF-8 decoding.

Implementation

String decodeStringValue(List<int> data) {
  return utf8.decode(data);
}