extractData static method

String extractData(
  1. BsonBinary buffer
)

Implementation

static String extractData(BsonBinary buffer) {
  var size = buffer.readInt32() - 1;
  var ret = utf8.decode(
      buffer.byteList.getRange(buffer.offset, buffer.offset + size).toList());
  buffer.offset += size + 1;
  return ret;
}