|
| 1 | +library #lib; |
| 2 | +import self as self; |
| 3 | +import "dart:core" as core; |
| 4 | +import "dart:ffi" as ffi; |
| 5 | +import "dart:_internal" as _in; |
| 6 | +import "dart:typed_data" as typ; |
| 7 | + |
| 8 | +import "dart:ffi"; |
| 9 | + |
| 10 | +@#C6 |
| 11 | +final class Struct1ByteInt extends ffi::Struct { |
| 12 | + synthetic constructor •() → self::Struct1ByteInt |
| 13 | + : super ffi::Struct::•() |
| 14 | + ; |
| 15 | + constructor #fromTypedDataBase(synthesized core::Object #typedDataBase) → self::Struct1ByteInt |
| 16 | + : super ffi::Struct::_fromTypedDataBase(#typedDataBase) |
| 17 | + ; |
| 18 | + @#C7 |
| 19 | + get a0() → core::int |
| 20 | + return ffi::_loadInt8(this.{ffi::_Compound::_typedDataBase}{core::Object}, #C9.{core::List::[]}(ffi::_abi()){(core::int) → core::int*}); |
| 21 | + @#C7 |
| 22 | + set a0(core::int #externalFieldValue) → void |
| 23 | + return ffi::_storeInt8(this.{ffi::_Compound::_typedDataBase}{core::Object}, #C9.{core::List::[]}(ffi::_abi()){(core::int) → core::int*}, #externalFieldValue); |
| 24 | + method toString() → core::String |
| 25 | + return "(${this.{self::Struct1ByteInt::a0}{core::int}})"; |
| 26 | + @#C11 |
| 27 | + static get #sizeOf() → core::int* |
| 28 | + return #C13.{core::List::[]}(ffi::_abi()){(core::int) → core::int*}; |
| 29 | +} |
| 30 | +static final field (core::int) → self::Struct1ByteInt _returnStruct1ByteIntNative$Method$FfiNative$Ptr = block { |
| 31 | + _in::_nativeEffect(new self::Struct1ByteInt::#fromTypedDataBase(typ::Uint8List::•(#C12))); |
| 32 | +} =>ffi::_asFunctionInternal<(core::int) → self::Struct1ByteInt, (ffi::Int8) → self::Struct1ByteInt>(ffi::_fromAddress<ffi::NativeFunction<(ffi::Int8) → self::Struct1ByteInt>*>(ffi::_ffi_resolver(#C14, #C15, #C12){(core::Object, core::Object, core::int) → core::int}), false)/*isLegacy*/; |
| 33 | +static method main() → void { |
| 34 | + final self::Struct1ByteInt result = self::returnStruct1ByteIntNative(1.{core::int::unary-}(){() → core::int}); |
| 35 | + core::print("result = ${result}"); |
| 36 | +} |
| 37 | +static method returnStruct1ByteIntNative(core::int a0) → self::Struct1ByteInt |
| 38 | + return self::_returnStruct1ByteIntNative$Method$FfiNative$Ptr(a0){(core::int) → self::Struct1ByteInt}; |
| 39 | +constants { |
| 40 | + #C1 = "vm:ffi:struct-fields" |
| 41 | + #C2 = TypeLiteralConstant(ffi::Int8) |
| 42 | + #C3 = <core::Type>[#C2] |
| 43 | + #C4 = null |
| 44 | + #C5 = ffi::_FfiStructLayout {fieldTypes:#C3, packing:#C4} |
| 45 | + #C6 = core::pragma {name:#C1, options:#C5} |
| 46 | + #C7 = ffi::Int8 {} |
| 47 | + #C8 = 0 |
| 48 | + #C9 = <core::int*>[#C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8, #C8] |
| 49 | + #C10 = "vm:prefer-inline" |
| 50 | + #C11 = core::pragma {name:#C10, options:#C4} |
| 51 | + #C12 = 1 |
| 52 | + #C13 = <core::int*>[#C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12, #C12] |
| 53 | + #C14 = "#lib" |
| 54 | + #C15 = "ReturnStruct1ByteInt" |
| 55 | +} |
0 commit comments