| library #lib; |
| import self as self; |
| import "dart:core" as core; |
| import "dart:ffi" as ffi; |
| import "dart:typed_data" as typ; |
| import "dart:_internal" as _in; |
| |
| import "dart:ffi"; |
| |
| @#C6 |
| final class Struct1ByteInt extends ffi::Struct { |
| synthetic constructor •() → self::Struct1ByteInt |
| : super ffi::Struct::•() |
| ; |
| constructor #fromTypedDataBase(synthesized core::Object #typedDataBase, synthesized core::int #offsetInBytes) → self::Struct1ByteInt |
| : super ffi::Struct::_fromTypedDataBase(#typedDataBase, #offsetInBytes) |
| ; |
| constructor #fromTypedData(synthesized typ::TypedData #typedData, synthesized core::int #offset, synthesized core::int #sizeInBytes) → self::Struct1ByteInt |
| : super ffi::Struct::_fromTypedData(#typedData, #offset, #sizeInBytes) |
| ; |
| @#C7 |
| get a0() → core::int |
| return ffi::_loadInt8(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Struct1ByteInt::a0#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}); |
| @#C7 |
| set a0(synthesized core::int #externalFieldValue) → void |
| return ffi::_storeInt8(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Struct1ByteInt::a0#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}, #externalFieldValue); |
| method toString() → core::String |
| return "(${this.{self::Struct1ByteInt::a0}{core::int}})"; |
| @#C9 |
| static get a0#offsetOf() → core::int |
| return #C11.{core::List::[]}(ffi::_abi()){(core::int) → core::int*}; |
| @#C9 |
| static get #sizeOf() → core::int* |
| return #C13.{core::List::[]}(ffi::_abi()){(core::int) → core::int*}; |
| } |
| static method main() → void { |
| final self::Struct1ByteInt result = self::returnStruct1ByteIntNative(1.{core::int::unary-}(){() → core::int}); |
| core::print("result = ${result}"); |
| ffi::Native::_addressOf<ffi::NativeFunction<(ffi::Int8) → self::Struct1ByteInt>>(#C17); |
| } |
| @#C19 |
| @#C9 |
| static method returnStruct1ByteIntNative(core::int a0) → self::Struct1ByteInt |
| return block { |
| _in::_nativeEffect(new self::Struct1ByteInt::#fromTypedDataBase(typ::Uint8List::•(#C12), #C10)); |
| } =>self::_returnStruct1ByteIntNative$Method$FfiNative(a0); |
| @#C21 |
| external static method _returnStruct1ByteIntNative$Method$FfiNative(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 = ffi::Int8 {} |
| #C8 = "vm:prefer-inline" |
| #C9 = core::pragma {name:#C8, options:#C4} |
| #C10 = 0 |
| #C11 = <core::int*>[#C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10, #C10] |
| #C12 = 1 |
| #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] |
| #C14 = "ReturnStruct1ByteInt" |
| #C15 = "#lib" |
| #C16 = false |
| #C17 = ffi::Native<(ffi::Int8) → self::Struct1ByteInt> {symbol:#C14, assetId:#C15, isLeaf:#C16} |
| #C18 = "cfe:ffi:native-marker" |
| #C19 = core::pragma {name:#C18, options:#C17} |
| #C20 = "vm:ffi:native" |
| #C21 = core::pragma {name:#C20, options:#C17} |
| } |