sharedmodule

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Export

type Export struct {
	// Allowlist is "Export.allowlist"
	//
	// Optional
	Allowlist js.Array[js.String]

	FFI_USE bool
}

func (*Export) FreeMembers

func (p *Export) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (Export) FromRef

func (p Export) FromRef(ref js.Ref) Export

FromRef calls UpdateFrom and returns a Export with all fields set.

func (Export) New

func (p Export) New() js.Ref

New creates a new Export in the application heap.

func (*Export) Update

func (p *Export) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*Export) UpdateFrom

func (p *Export) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type Import

type Import struct {
	// Id is "Import.id"
	//
	// Optional
	Id js.String
	// MinimumVersion is "Import.minimum_version"
	//
	// Optional
	MinimumVersion js.String

	FFI_USE bool
}

func (*Import) FreeMembers

func (p *Import) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (Import) FromRef

func (p Import) FromRef(ref js.Ref) Import

FromRef calls UpdateFrom and returns a Import with all fields set.

func (Import) New

func (p Import) New() js.Ref

New creates a new Import in the application heap.

func (*Import) Update

func (p *Import) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*Import) UpdateFrom

func (p *Import) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type ManifestKeys

type ManifestKeys struct {
	// Import is "ManifestKeys.import"
	//
	// Optional
	Import js.Array[Import]
	// Export is "ManifestKeys.export"
	//
	// Optional
	//
	// NOTE: Export.FFI_USE MUST be set to true to get Export used.
	Export Export

	FFI_USE bool
}

func (*ManifestKeys) FreeMembers

func (p *ManifestKeys) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (ManifestKeys) FromRef

func (p ManifestKeys) FromRef(ref js.Ref) ManifestKeys

FromRef calls UpdateFrom and returns a ManifestKeys with all fields set.

func (ManifestKeys) New

func (p ManifestKeys) New() js.Ref

New creates a new ManifestKeys in the application heap.

func (*ManifestKeys) Update

func (p *ManifestKeys) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*ManifestKeys) UpdateFrom

func (p *ManifestKeys) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL