blob: fd78c7bbaa098eb00aad8ee3917c90714cee99bb [file] [log] [blame]
library #lib;
import self as self;
import "dart:core" as core;
import "dart:ffi" as ffi;
import "dart:typed_data" as typ;
import "dart:ffi";
@#C3
@#C8
final class Coordinate extends ffi::Struct {
synthetic constructor •() self::Coordinate
: super ffi::Struct::•()
;
constructor #fromTypedDataBase(synthesized core::Object #typedDataBase, synthesized core::int #offsetInBytes) → self::Coordinate
: super ffi::Struct::_fromTypedDataBase(#typedDataBase, #offsetInBytes)
;
@#C10
constructor #fromTypedData(synthesized typ::TypedData #typedData, synthesized core::int #offset, synthesized core::int #sizeInBytes) → self::Coordinate
: super ffi::Struct::_fromTypedData(#typedData, #offset, #sizeInBytes)
;
@#C11
@#C10
get x() core::int
return ffi::_loadInt64(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Coordinate::x#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num});
@#C11
@#C10
set x(synthesized core::int #externalFieldValue) → void
return ffi::_storeInt64(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Coordinate::x#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}, #externalFieldValue);
@#C11
@#C10
get y() core::int
return ffi::_loadInt64(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Coordinate::y#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num});
@#C11
@#C10
set y(synthesized core::int #externalFieldValue) → void
return ffi::_storeInt64(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::Coordinate::y#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}, #externalFieldValue);
method copyInto(ffi::Pointer<self::Coordinate> ptr) void {
block {
synthesized self::Coordinate #source = this;
} =>ffi::_memCopy(ptr, #C12, #source.{ffi::_Compound::_typedDataBase}{core::Object}, #source.{ffi::_Compound::_offsetInBytes}{core::int}, self::Coordinate::#sizeOf);
}
method getRefWithFinalizer(ffi::Pointer<self::Coordinate> ptr, ffi::Pointer<ffi::NativeFunction<(ffi::Pointer<ffi::Void>) ffi::Void>> finalizer, {ffi::Pointer<ffi::Void>? token = #C2}) → void {
new self::Coordinate::#fromTypedData(ffi::Uint8Pointer|asTypedList(ptr.{ffi::Pointer::cast}<ffi::Uint8>(){() ffi::Pointer<ffi::Uint8>}, self::Coordinate::#sizeOf, finalizer: finalizer, token: token), #C12, self::Coordinate::#sizeOf);
}
@#C10
static synthetic get x#offsetOf() → core::int
return #C13.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
@#C10
static synthetic get y#offsetOf() → core::int
return #C15.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
@#C10
static get #sizeOf() → core::int
return #C17.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
}
@#C3
@#C21
final class SomeUnion extends ffi::Union {
synthetic constructor •() self::SomeUnion
: super ffi::Union::•()
;
constructor #fromTypedDataBase(synthesized core::Object #typedDataBase, synthesized core::int #offsetInBytes) → self::SomeUnion
: super ffi::Union::_fromTypedDataBase(#typedDataBase, #offsetInBytes)
;
@#C10
constructor #fromTypedData(synthesized typ::TypedData #typedData, synthesized core::int #offset, synthesized core::int #sizeInBytes) → self::SomeUnion
: super ffi::Union::_fromTypedData(#typedData, #offset, #sizeInBytes)
;
@#C10
get coordinate() self::Coordinate
return new self::Coordinate::#fromTypedDataBase(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::SomeUnion::coordinate#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num});
@#C10
set coordinate(synthesized self::Coordinate #externalFieldValue) → void
return ffi::_memCopy(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::SomeUnion::coordinate#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}, #externalFieldValue.{ffi::_Compound::_typedDataBase}{core::Object}, #externalFieldValue.{ffi::_Compound::_offsetInBytes}{core::int}, #C17.{core::List::[]}(ffi::_abi()){(core::int) → core::int});
@#C11
@#C10
get id() core::int
return ffi::_loadInt64(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::SomeUnion::id#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num});
@#C11
@#C10
set id(synthesized core::int #externalFieldValue) → void
return ffi::_storeInt64(this.{ffi::_Compound::_typedDataBase}{core::Object}, self::SomeUnion::id#offsetOf.{core::num::+}(this.{ffi::_Compound::_offsetInBytes}{core::int}){(core::num) → core::num}, #externalFieldValue);
method copyIntoAtIndex(ffi::Pointer<self::SomeUnion> ptr, core::int index) void {
block {
synthesized self::SomeUnion #source = this;
} =>ffi::_memCopy(ptr, index.{core::num::*}(self::SomeUnion::#sizeOf){(core::num) core::num}, #source.{ffi::_Compound::_typedDataBase}{core::Object}, #source.{ffi::_Compound::_offsetInBytes}{core::int}, self::SomeUnion::#sizeOf);
}
method getRefWithFinalizer(ffi::Pointer<self::SomeUnion> ptr, ffi::Pointer<ffi::NativeFunction<(ffi::Pointer<ffi::Void>) ffi::Void>> finalizer, {ffi::Pointer<ffi::Void>? token = #C2}) → void {
new self::SomeUnion::#fromTypedData(ffi::Uint8Pointer|asTypedList(ptr.{ffi::Pointer::cast}<ffi::Uint8>(){() ffi::Pointer<ffi::Uint8>}, self::SomeUnion::#sizeOf, finalizer: finalizer, token: token), #C12, self::SomeUnion::#sizeOf);
}
@#C10
static synthetic get coordinate#offsetOf() → core::int
return #C13.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
@#C10
static synthetic get id#offsetOf() → core::int
return #C13.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
@#C10
static get #sizeOf() → core::int
return #C17.{core::List::[]}(ffi::_abi()){(core::int) → core::int};
}
static method main() void {}
constants {
#C1 = "vm:deeply-immutable"
#C2 = null
#C3 = core::pragma {name:#C1, options:#C2}
#C4 = "vm:ffi:struct-fields"
#C5 = TypeLiteralConstant(ffi::Int64)
#C6 = <core::Type>[#C5, #C5]
#C7 = ffi::_FfiStructLayout {fieldTypes:#C6, packing:#C2}
#C8 = core::pragma {name:#C4, options:#C7}
#C9 = "vm:prefer-inline"
#C10 = core::pragma {name:#C9, options:#C2}
#C11 = ffi::Int64 {}
#C12 = 0
#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 = 8
#C15 = <core::int>[#C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14, #C14]
#C16 = 16
#C17 = <core::int>[#C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16, #C16]
#C18 = TypeLiteralConstant(self::Coordinate)
#C19 = <core::Type>[#C18, #C5]
#C20 = ffi::_FfiStructLayout {fieldTypes:#C19, packing:#C2}
#C21 = core::pragma {name:#C4, options:#C20}
}