decodeProtocolText function
Implementation
Object decodeProtocolText(Uint8List data) {
if (binaryProtocolLazyStringsActive) {
// Shares [data]'s backing store; the parent frame must stay alive until
// lazy cells are consumed or decoded.
return LazyString(data);
}
return utf8.decode(data, allowMalformed: true);
}