blob: 38b6d28ece30cf735a3557be5fb63795e904051a [file] [log] [blame]
library;
import self as self;
import "dart:async" as asy;
import "dart:typed_data" as typ;
import "dart:core" as core;
import "dart:typed_data";
static method getBinaryTestProto() asy::Future<typ::Uint8List>
return self::readFileWeb("test.binary.pb");
static method readFileWeb(core::String path) asy::Future<typ::Uint8List> async /* emittedValueType= typ::Uint8List */ {
throw "";
}
static method runBench([typ::Uint8List? data = #C1]) → void async /* emittedValueType= void */ {
typ::Uint8List :async_temporary_0;
typ::Uint8List? :async_temporary_1;
if(data == null) {
:async_temporary_0 = await self::getBinaryTestProto();
:async_temporary_1 = data = :async_temporary_0 as{ForLegacy} dynamic;
}
else {
:async_temporary_1 = null;
}
:async_temporary_1 as{ForLegacy} dynamic;
core::print(data{typ::Uint8List});
}
static method main() void async /* emittedValueType= void */ {
typ::Uint8List :async_temporary_0;
:async_temporary_0 = await self::getBinaryTestProto();
typ::Uint8List data = :async_temporary_0 as{ForLegacy} dynamic;
core::print("File successfully read, contents: ${data}");
self::runBench(data);
}
constants {
#C1 = null
}