C++ (Qt)QByteArray arr = QByteArray::fromRawData( (const char*)array, 40000000 * sizeof( double ) );
C++ (Qt)QByteArray QByteArray::fromRawData(const char *data, int size){ Data *x = static_cast<Data *>(qMalloc(sizeof(Data))); if (data) { x->data = const_cast<char *>(data); } else { x->data = x->array; size = 0; } x->ref = 1; x->alloc = x->size = size; *x->array = '\0'; return QByteArray(x, 0, 0);