Files

32 lines
962 B
TypeScript

// This file has been automatically generated by zap-es.
import * as $ from "zap-es";
import { Baz } from "./import-bar.js";
export const _zapFileId = 0xfc552bdafbb0b889n;
export class Foo extends $.Struct {
static readonly BAZ_CONST = $.readRawPointer(new Uint8Array([16, 2, 64, 1, 0, 0]).buffer);
static readonly _zap = {
displayName: "Foo",
id: "f92e265d07c50136",
size: new $.ObjectSize(0, 1),
};
_adoptBaz(value: $.Orphan<Baz>): void {
$.utils.adopt(value, $.utils.getPointer(0, this));
}
_disownBaz(): $.Orphan<Baz> {
return $.utils.disown(this.baz);
}
get baz(): Baz {
return $.utils.getStruct(0, Baz, this);
}
_hasBaz(): boolean {
return !$.utils.isNull($.utils.getPointer(0, this));
}
_initBaz(): Baz {
return $.utils.initStructAt(0, Baz, this);
}
set baz(value: Baz) {
$.utils.copyFrom(value, $.utils.getPointer(0, this));
}
toString(): string { return "Foo_" + super.toString(); }
}