| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index fabeaf7b2c025f864b7f85d978691eac89617447..f43dda3dab2b8951ab9d17c2882326afe5f1f867 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1404,7 +1404,7 @@ DART_EXPORT Dart_Handle Dart_ListLength(Dart_Handle list, intptr_t* len) {
|
| return result;
|
| }
|
| }
|
| - return Api::NewError("Object does not implement the list inteface");
|
| + return Api::NewError("Object does not implement the 'List' inteface");
|
| }
|
|
|
|
|
| @@ -1660,6 +1660,24 @@ DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list,
|
| }
|
|
|
|
|
| +// --- Byte Arrays ---
|
| +
|
| +
|
| +DART_EXPORT bool Dart_IsByteArray(Dart_Handle object) {
|
| + DARTSCOPE(Isolate::Current());
|
| + const Object& obj = Object::Handle(Api::UnwrapHandle(object));
|
| + return obj.IsByteArray();
|
| +}
|
| +
|
| +
|
| +DART_EXPORT Dart_Handle Dart_NewByteArray(intptr_t length) {
|
| + DARTSCOPE(Isolate::Current());
|
| + const InternalByteArray& obj =
|
| + InternalByteArray::Handle(InternalByteArray::New(length));
|
| + return Api::NewLocalHandle(obj);
|
| +}
|
| +
|
| +
|
| // --- Closures ---
|
|
|
|
|
|
|