decodeProtocolText function

Object decodeProtocolText(
  1. Uint8List data
)

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);
}