| library #lib; |
| import self as self; |
| import "dart:core" as core; |
| import "dart:ffi" as ffi; |
| import "dart:_internal" as _in; |
| import "dart:typed_data" as typ; |
| |
| import "dart:ffi"; |
| |
| @#C6 |
| final class Struct1ByteInt extends ffi::Struct { |
| constructor #fromTypedDataBase([@vm.inferred-arg-type.metadata=dart.typed_data::_Uint8List] synthesized core::Object #typedDataBase) → self::Struct1ByteInt |
| : super ffi::Struct::_fromTypedDataBase(#typedDataBase) |
| ; |
| |
| [@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasNonThisUses:false,hasTearOffUses:false,getterSelectorId:1] |
| [@vm.unboxing-info.metadata=()->i] |
| get a0() → core::int |
| return [@vm.inferred-type.metadata=int] ffi::_loadInt8([@vm.direct-call.metadata=dart.ffi::_Compound._typedDataBase] this.{ffi::_Compound::_typedDataBase}{core::Object}, [@vm.direct-call.metadata=dart.core::_IntegerImplementation.+] [@vm.inferred-type.metadata=int (skip check)] [@vm.inferred-type.metadata=dart.core::_Smi (value: 0)] self::Struct1ByteInt::a0#offsetOf.{core::num::+}([@vm.direct-call.metadata=dart.ffi::_Compound._offsetInBytes] [@vm.inferred-type.metadata=int?] this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}); |
| |
| [@vm.procedure-attributes.metadata=methodOrSetterCalledDynamically:false,getterCalledDynamically:false,hasThisUses:false,hasTearOffUses:false,methodOrSetterSelectorId:2,getterSelectorId:3] |
| [@vm.unboxing-info.metadata=[!regcc]] |
| method toString() → core::String |
| return "(${[@vm.direct-call.metadata=#lib::Struct1ByteInt.a0] this.{self::Struct1ByteInt::a0}{core::int}})"; |
| |
| [@vm.unboxing-info.metadata=()->i] |
| @#C8 |
| static get a0#offsetOf() → core::int |
| return #C10.{core::List::[]}(ffi::_abi()){(core::int) → core::int}; |
| } |
| static method main() → void { |
| final self::Struct1ByteInt result = self::returnStruct1ByteIntNative([@vm.direct-call.metadata=dart.core::_IntegerImplementation.unary-] [@vm.inferred-type.metadata=int (skip check)] 1.{core::int::unary-}(){() → core::int}); |
| core::print("result = ${result}"); |
| ffi::Native::_addressOf<ffi::NativeFunction<(ffi::Int8) → self::Struct1ByteInt>>(#C14); |
| } |
| |
| [@vm.unboxing-info.metadata=(i)->b] |
| @#C16 |
| @#C8 |
| static method returnStruct1ByteIntNative([@vm.inferred-arg-type.metadata=int] core::int a0) → self::Struct1ByteInt |
| return block { |
| _in::_nativeEffect(new self::Struct1ByteInt::#fromTypedDataBase([@vm.inferred-type.metadata=dart.typed_data::_Uint8List] typ::Uint8List::•(#C17))); |
| } =>[@vm.inferred-type.metadata=#lib::Struct1ByteInt] self::_returnStruct1ByteIntNative$Method$FfiNative(a0); |
| |
| [@vm.unboxing-info.metadata=(i)->b] |
| @#C19 |
| external static method _returnStruct1ByteIntNative$Method$FfiNative([@vm.inferred-arg-type.metadata=int] core::int #t0) → self::Struct1ByteInt; |
| constants { |
| #C1 = "vm:ffi:struct-fields" |
| #C2 = TypeLiteralConstant(ffi::Int8) |
| #C3 = <core::Type>[#C2] |
| #C4 = null |
| #C5 = ffi::_FfiStructLayout {fieldTypes:#C3, packing:#C4} |
| #C6 = core::pragma {name:#C1, options:#C5} |
| #C7 = "vm:prefer-inline" |
| #C8 = core::pragma {name:#C7, options:#C4} |
| #C9 = 0 |
| #C10 = <core::int>[#C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9, #C9] |
| #C11 = "ReturnStruct1ByteInt" |
| #C12 = "#lib" |
| #C13 = false |
| #C14 = ffi::Native<(ffi::Int8) → self::Struct1ByteInt> {symbol:#C11, assetId:#C12, isLeaf:#C13} |
| #C15 = "cfe:ffi:native-marker" |
| #C16 = core::pragma {name:#C15, options:#C14} |
| #C17 = 1 |
| #C18 = "vm:ffi:native" |
| #C19 = core::pragma {name:#C18, options:#C14} |
| } |