mirror of
https://github.com/hanzoai/zap-es.git
synced 2026-10-30 18:17:07 +00:00
147 lines
6.9 KiB
TypeScript
147 lines
6.9 KiB
TypeScript
// This file has been automatically generated by zap-es.
|
|
import * as $ from "zap-es";
|
|
import { Annotation, Brand, Brand_Binding, Brand_Scope, ElementSize, Enumerant, Field, Method, Node, Node_NestedNode, Node_Parameter, Superclass, Type, Value } from "zap-es/zap/schema";
|
|
import { TestImport } from "./test-import.js";
|
|
import { TestAllTypes, TestAnyOthers, TestAnyPointer, TestAnyPointerConstants, TestAuthenticatedBootstrap, TestAuthenticatedBootstrap$Client, TestCallOrder, TestCallOrder$Client, TestConstants, TestContainMembrane, TestContructorName, TestDefaults, TestEmptyStruct, TestEnum, TestExtends, TestExtends$Client, TestExtends2, TestExtends2$Client, TestFieldZeroIsBit, TestGenerics, TestGenericsUnion, TestGenericsWrapper, TestGenericsWrapper2, TestGenerics_Inner, TestGenerics_Inner2, TestGenerics_Inner2_DeepNest, TestGenerics_Inner2_DeepNest_DeepNestInterface, TestGenerics_Inner2_DeepNest_DeepNestInterface$Client, TestGenerics_Interface, TestGenerics_Interface$Client, TestGenerics_UseAliases, TestGroups, TestHandle, TestHandle$Client, TestImplicitMethodParams, TestImplicitMethodParams$Client, TestImplicitMethodParamsInGeneric, TestImplicitMethodParamsInGeneric$Client, TestInterface, TestInterface$Client, TestInterleavedGroups, TestJoinResult, TestKeywordMethods, TestKeywordMethods$Client, TestLateUnion, TestListDefaults, TestLists, TestLists_Struct0, TestLists_Struct0c, TestLists_Struct1, TestLists_Struct16, TestLists_Struct16c, TestLists_Struct1c, TestLists_Struct32, TestLists_Struct32c, TestLists_Struct64, TestLists_Struct64c, TestLists_Struct8, TestLists_Struct8c, TestLists_StructP, TestLists_StructPc, TestMembrane, TestMembrane$Client, TestMembrane_Result, TestMembrane_Thing, TestMembrane_Thing$Client, TestMoreStuff, TestMoreStuff$Client, TestNameAnnotation, TestNameAnnotationInterface, TestNameAnnotationInterface$Client, TestNameAnnotation_BadlyNamedEnum, TestNameAnnotation_NestedStruct, TestNameAnnotation_NestedStruct_DeeplyNestedEnum, TestNestedTypes, TestNestedTypes_NestedEnum, TestNestedTypes_NestedStruct, TestNestedTypes_NestedStruct_NestedEnum, TestNewUnionVersion, TestNewVersion, TestOldUnionVersion, TestOldVersion, TestOutOfOrder, TestPipeline, TestPipeline$Client, TestPipeline_AnyBox, TestPipeline_Box, TestPrintInlineStructs, TestPrintInlineStructs_InlineStruct, TestProvisionId, TestRecipientId, TestStructUnion, TestStructUnion_SomeStruct, TestSturdyRef, TestSturdyRefHostId, TestSturdyRefObjectId, TestSturdyRefObjectId_Tag, TestTailCallee, TestTailCallee$Client, TestTailCallee_TailResult, TestTailCaller, TestTailCaller$Client, TestThirdPartyCapId, TestTransferCap, TestTransferCap_Element, TestUnion, TestUnionDefaults, TestUnionInUnion, TestUnnamedUnion, TestUseGenerics, TestUsing, TestWholeFloatDefault } from "./test.js";
|
|
export const _zapFileId = 0xc64a3bf0338a124an;
|
|
export class TestImport2 extends $.Struct {
|
|
static readonly _zap = {
|
|
displayName: "TestImport2",
|
|
id: "f6bd77f100ecb0ff",
|
|
size: new $.ObjectSize(8, 7),
|
|
};
|
|
_adoptFoo(value: $.Orphan<TestAllTypes>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(0, this));
|
|
}
|
|
_disownFoo(): $.Orphan<TestAllTypes> {
|
|
return $.utils.disown(this.foo);
|
|
}
|
|
get foo(): TestAllTypes {
|
|
return $.utils.getStruct(0, TestAllTypes, this);
|
|
}
|
|
_hasFoo(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(0, this));
|
|
}
|
|
_initFoo(): TestAllTypes {
|
|
return $.utils.initStructAt(0, TestAllTypes, this);
|
|
}
|
|
set foo(value: TestAllTypes) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(0, this));
|
|
}
|
|
_adoptBar(value: $.Orphan<Node>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(1, this));
|
|
}
|
|
_disownBar(): $.Orphan<Node> {
|
|
return $.utils.disown(this.bar);
|
|
}
|
|
get bar(): Node {
|
|
return $.utils.getStruct(1, Node, this);
|
|
}
|
|
_hasBar(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(1, this));
|
|
}
|
|
_initBar(): Node {
|
|
return $.utils.initStructAt(1, Node, this);
|
|
}
|
|
set bar(value: Node) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(1, this));
|
|
}
|
|
_adoptBaz(value: $.Orphan<TestImport>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(2, this));
|
|
}
|
|
_disownBaz(): $.Orphan<TestImport> {
|
|
return $.utils.disown(this.baz);
|
|
}
|
|
get baz(): TestImport {
|
|
return $.utils.getStruct(2, TestImport, this);
|
|
}
|
|
_hasBaz(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(2, this));
|
|
}
|
|
_initBaz(): TestImport {
|
|
return $.utils.initStructAt(2, TestImport, this);
|
|
}
|
|
set baz(value: TestImport) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(2, this));
|
|
}
|
|
_adoptBox(value: $.Orphan<Node_Parameter>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(3, this));
|
|
}
|
|
_disownBox(): $.Orphan<Node_Parameter> {
|
|
return $.utils.disown(this.box);
|
|
}
|
|
get box(): Node_Parameter {
|
|
return $.utils.getStruct(3, Node_Parameter, this);
|
|
}
|
|
_hasBox(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(3, this));
|
|
}
|
|
_initBox(): Node_Parameter {
|
|
return $.utils.initStructAt(3, Node_Parameter, this);
|
|
}
|
|
set box(value: Node_Parameter) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(3, this));
|
|
}
|
|
_adoptBee(value: $.Orphan<Node_NestedNode>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(4, this));
|
|
}
|
|
_disownBee(): $.Orphan<Node_NestedNode> {
|
|
return $.utils.disown(this.bee);
|
|
}
|
|
get bee(): Node_NestedNode {
|
|
return $.utils.getStruct(4, Node_NestedNode, this);
|
|
}
|
|
_hasBee(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(4, this));
|
|
}
|
|
_initBee(): Node_NestedNode {
|
|
return $.utils.initStructAt(4, Node_NestedNode, this);
|
|
}
|
|
set bee(value: Node_NestedNode) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(4, this));
|
|
}
|
|
_adoptBok(value: $.Orphan<Brand_Scope>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(5, this));
|
|
}
|
|
_disownBok(): $.Orphan<Brand_Scope> {
|
|
return $.utils.disown(this.bok);
|
|
}
|
|
get bok(): Brand_Scope {
|
|
return $.utils.getStruct(5, Brand_Scope, this);
|
|
}
|
|
_hasBok(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(5, this));
|
|
}
|
|
_initBok(): Brand_Scope {
|
|
return $.utils.initStructAt(5, Brand_Scope, this);
|
|
}
|
|
set bok(value: Brand_Scope) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(5, this));
|
|
}
|
|
_adoptBip(value: $.Orphan<Brand_Binding>): void {
|
|
$.utils.adopt(value, $.utils.getPointer(6, this));
|
|
}
|
|
_disownBip(): $.Orphan<Brand_Binding> {
|
|
return $.utils.disown(this.bip);
|
|
}
|
|
get bip(): Brand_Binding {
|
|
return $.utils.getStruct(6, Brand_Binding, this);
|
|
}
|
|
_hasBip(): boolean {
|
|
return !$.utils.isNull($.utils.getPointer(6, this));
|
|
}
|
|
_initBip(): Brand_Binding {
|
|
return $.utils.initStructAt(6, Brand_Binding, this);
|
|
}
|
|
set bip(value: Brand_Binding) {
|
|
$.utils.copyFrom(value, $.utils.getPointer(6, this));
|
|
}
|
|
get bep(): ElementSize {
|
|
return $.utils.getUint16(0, this) as ElementSize;
|
|
}
|
|
set bep(value: ElementSize) {
|
|
$.utils.setUint16(0, value, this);
|
|
}
|
|
toString(): string { return "TestImport2_" + super.toString(); }
|
|
}
|