1372 {
1374 switch (cid_) {
1375 case kExternalTypedDataInt8ArrayCid:
1377 break;
1378 case kExternalTypedDataUint8ArrayCid:
1380 break;
1381 case kExternalTypedDataUint8ClampedArrayCid:
1383 break;
1384 case kExternalTypedDataInt16ArrayCid:
1386 break;
1387 case kExternalTypedDataUint16ArrayCid:
1389 break;
1390 case kExternalTypedDataInt32ArrayCid:
1392 break;
1393 case kExternalTypedDataUint32ArrayCid:
1395 break;
1396 case kExternalTypedDataInt64ArrayCid:
1398 break;
1399 case kExternalTypedDataUint64ArrayCid:
1401 break;
1402 case kExternalTypedDataFloat32ArrayCid:
1404 break;
1405 case kExternalTypedDataFloat64ArrayCid:
1407 break;
1408 case kExternalTypedDataInt32x4ArrayCid:
1410 break;
1411 case kExternalTypedDataFloat32x4ArrayCid:
1413 break;
1414 case kExternalTypedDataFloat64x2ArrayCid:
1416 break;
1417 default:
1419 }
1420
1421 intptr_t
count =
d->ReadUnsigned();
1422 for (intptr_t
i = 0;
i <
count;
i++) {
1424 intptr_t
length =
d->ReadUnsigned();
1425 FinalizableData finalizable_data =
d->finalizable_data()->Get();
1426 data->value.as_typed_data.type =
type;
1428 data->value.as_typed_data.values =
1429 reinterpret_cast<uint8_t*>(finalizable_data.data);
1431 }
1432 }
@ Dart_TypedData_kFloat32x4
@ Dart_TypedData_kInt32x4
@ Dart_TypedData_kFloat64x2
@ Dart_TypedData_kFloat32
@ Dart_TypedData_kFloat64
@ Dart_TypedData_kUint8Clamped
@ Dart_CObject_kTypedData