fromwireArrayUtf8 function

List fromwireArrayUtf8(
  1. Uint8List buffer,
  2. int len
)

Implementation

List<dynamic> fromwireArrayUtf8(Uint8List buffer, int len) {
  // Slice the buffer to get the desired length
  Uint8List slicedBuffer = buffer.sublist(0, len);

  // Convert the sliced buffer to a UTF-8 string
  String utf8String = utf8.decode(slicedBuffer);

  // Return the UTF-8 string and the original buffer
  return [utf8String, buffer];
}