forked from firka/flutter
Manual roll of Dart with fixups to zircon system.dart (flutter/engine#44185)
https://dart.googlesource.com/sdk.git/+log/4fd35600b477..0e02245635ea Merge to Dart Version 3.2.0-16.0.dev
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Signature: eca8a55f4f8e1225df85bb269749e68c
|
||||
Signature: a4dee66e7471aa133d109697527a267d
|
||||
|
||||
====================================================================================================
|
||||
LIBRARY: dart
|
||||
|
||||
@@ -86,7 +86,8 @@ class ReadResult extends _Result {
|
||||
/// Returns the bytes as a Uint8List. If status != OK this will throw
|
||||
/// an exception.
|
||||
Uint8List bytesAsUint8List() {
|
||||
return _bytes!.buffer.asUint8List(_bytes!.offsetInBytes, _numBytes!);
|
||||
final lbytes = bytes;
|
||||
return lbytes.buffer.asUint8List(lbytes.offsetInBytes, _numBytes!);
|
||||
}
|
||||
|
||||
/// Returns the bytes as a String. If status != OK this will throw
|
||||
@@ -129,7 +130,8 @@ class ReadEtcResult extends _Result {
|
||||
/// Returns the bytes as a Uint8List. If status != OK this will throw
|
||||
/// an exception.
|
||||
Uint8List bytesAsUint8List() {
|
||||
return _bytes!.buffer.asUint8List(_bytes!.offsetInBytes, _numBytes!);
|
||||
final lbytes = bytes;
|
||||
return lbytes.buffer.asUint8List(lbytes.offsetInBytes, _numBytes!);
|
||||
}
|
||||
|
||||
/// Returns the bytes as a String. If status != OK this will throw
|
||||
|
||||
Reference in New Issue
Block a user