gen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by wazero-emscripten-embind, DO NOT EDIT.

because Bergamot uses Marian, which uses SentencePiece, which uses multithreading, it is now hard to generate embind code for given module as Wazero does support thread feature only experimentally. If it is needed to regenerate code, the Bergamot project can be built with -DUSE_SENTENCE_PIECE=off CMake option.

Code generated by wazero-emscripten-embind, DO NOT EDIT.

Code generated by wazero-emscripten-embind, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignedMemory

func AlignedMemory(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func AlignedMemoryList

func AlignedMemoryList(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func Attach

func Attach(e embind.Engine) error

func BlockingService

func BlockingService(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func Response

func Response(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func TranslationModel

func TranslationModel(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func VectorResponse

func VectorResponse(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func VectorResponseOptions

func VectorResponseOptions(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

func VectorString

func VectorString(e embind.Engine, ctx context.Context) (embind.ClassBase, error)

Types

type ClassAlignedMemory

type ClassAlignedMemory struct {
	embind.ClassBase
}

func NewClassAlignedMemory

func NewClassAlignedMemory(e embind.Engine, ctx context.Context, arg0 uint32, arg1 uint32) (*ClassAlignedMemory, error)

func (*ClassAlignedMemory) CallMethod

func (class *ClassAlignedMemory) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassAlignedMemory) Clone

func (*ClassAlignedMemory) Delete

func (class *ClassAlignedMemory) Delete(ctx context.Context) error

func (*ClassAlignedMemory) DeleteLater

func (class *ClassAlignedMemory) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassAlignedMemory) GetByteArrayView

func (class *ClassAlignedMemory) GetByteArrayView(ctx context.Context) (any, error)

func (*ClassAlignedMemory) GetProperty

func (class *ClassAlignedMemory) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassAlignedMemory) IsAliasOf

func (class *ClassAlignedMemory) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassAlignedMemory) IsDeleted

func (class *ClassAlignedMemory) IsDeleted(ctx context.Context) bool

func (*ClassAlignedMemory) SetProperty

func (class *ClassAlignedMemory) SetProperty(ctx context.Context, name string, value any) error

func (*ClassAlignedMemory) Size

func (class *ClassAlignedMemory) Size(ctx context.Context) (uint32, error)

type ClassAlignedMemoryList

type ClassAlignedMemoryList struct {
	embind.ClassBase
}

func NewClassAlignedMemoryList

func NewClassAlignedMemoryList(e embind.Engine, ctx context.Context) (*ClassAlignedMemoryList, error)

func (*ClassAlignedMemoryList) CallMethod

func (class *ClassAlignedMemoryList) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassAlignedMemoryList) Clone

func (*ClassAlignedMemoryList) Delete

func (class *ClassAlignedMemoryList) Delete(ctx context.Context) error

func (*ClassAlignedMemoryList) DeleteLater

func (class *ClassAlignedMemoryList) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassAlignedMemoryList) Get

func (class *ClassAlignedMemoryList) Get(ctx context.Context, arg0 uint32) (any, error)

func (*ClassAlignedMemoryList) GetProperty

func (class *ClassAlignedMemoryList) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassAlignedMemoryList) IsAliasOf

func (class *ClassAlignedMemoryList) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassAlignedMemoryList) IsDeleted

func (class *ClassAlignedMemoryList) IsDeleted(ctx context.Context) bool

func (*ClassAlignedMemoryList) Push_back

func (class *ClassAlignedMemoryList) Push_back(ctx context.Context, arg0 embind.ClassBase) error

func (*ClassAlignedMemoryList) Resize

func (class *ClassAlignedMemoryList) Resize(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) error

func (*ClassAlignedMemoryList) Set

func (class *ClassAlignedMemoryList) Set(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) (bool, error)

func (*ClassAlignedMemoryList) SetProperty

func (class *ClassAlignedMemoryList) SetProperty(ctx context.Context, name string, value any) error

func (*ClassAlignedMemoryList) Size

func (class *ClassAlignedMemoryList) Size(ctx context.Context) (uint32, error)

type ClassBlockingService

type ClassBlockingService struct {
	embind.ClassBase
}

func NewClassBlockingService

func NewClassBlockingService(e embind.Engine, ctx context.Context, arg0 map[string]any) (*ClassBlockingService, error)

func (*ClassBlockingService) CallMethod

func (class *ClassBlockingService) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassBlockingService) Clone

func (*ClassBlockingService) Delete

func (class *ClassBlockingService) Delete(ctx context.Context) error

func (*ClassBlockingService) DeleteLater

func (class *ClassBlockingService) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassBlockingService) GetProperty

func (class *ClassBlockingService) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassBlockingService) IsAliasOf

func (class *ClassBlockingService) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassBlockingService) IsDeleted

func (class *ClassBlockingService) IsDeleted(ctx context.Context) bool

func (*ClassBlockingService) SetProperty

func (class *ClassBlockingService) SetProperty(ctx context.Context, name string, value any) error

func (*ClassBlockingService) Translate

func (class *ClassBlockingService) Translate(ctx context.Context, arg0 embind.ClassBase, arg1 embind.ClassBase, arg2 embind.ClassBase) (embind.ClassBase, error)

func (*ClassBlockingService) TranslateViaPivoting

func (class *ClassBlockingService) TranslateViaPivoting(ctx context.Context, arg0 embind.ClassBase, arg1 embind.ClassBase, arg2 embind.ClassBase, arg3 embind.ClassBase) (embind.ClassBase, error)

type ClassResponse

type ClassResponse struct {
	embind.ClassBase
}

func NewClassResponse

func NewClassResponse(e embind.Engine, ctx context.Context) (*ClassResponse, error)

func (*ClassResponse) CallMethod

func (class *ClassResponse) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassResponse) Clone

func (class *ClassResponse) Clone(ctx context.Context) (*ClassResponse, error)

func (*ClassResponse) Delete

func (class *ClassResponse) Delete(ctx context.Context) error

func (*ClassResponse) DeleteLater

func (class *ClassResponse) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassResponse) GetOriginalText

func (class *ClassResponse) GetOriginalText(ctx context.Context) (string, error)

func (*ClassResponse) GetProperty

func (class *ClassResponse) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassResponse) GetSourceSentence

func (class *ClassResponse) GetSourceSentence(ctx context.Context, arg0 uint32) (map[string]any, error)

func (*ClassResponse) GetTranslatedSentence

func (class *ClassResponse) GetTranslatedSentence(ctx context.Context, arg0 uint32) (map[string]any, error)

func (*ClassResponse) GetTranslatedText

func (class *ClassResponse) GetTranslatedText(ctx context.Context) (string, error)

func (*ClassResponse) IsAliasOf

func (class *ClassResponse) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassResponse) IsDeleted

func (class *ClassResponse) IsDeleted(ctx context.Context) bool

func (*ClassResponse) SetProperty

func (class *ClassResponse) SetProperty(ctx context.Context, name string, value any) error

func (*ClassResponse) Size

func (class *ClassResponse) Size(ctx context.Context) (uint32, error)

type ClassTranslationModel

type ClassTranslationModel struct {
	embind.ClassBase
}

func NewClassTranslationModel

func NewClassTranslationModel(e embind.Engine, ctx context.Context, arg0 string, arg1 embind.ClassBase, arg2 embind.ClassBase, arg3 embind.ClassBase, arg4 embind.ClassBase) (*ClassTranslationModel, error)

func (*ClassTranslationModel) CallMethod

func (class *ClassTranslationModel) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassTranslationModel) Clone

func (*ClassTranslationModel) Delete

func (class *ClassTranslationModel) Delete(ctx context.Context) error

func (*ClassTranslationModel) DeleteLater

func (class *ClassTranslationModel) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassTranslationModel) GetProperty

func (class *ClassTranslationModel) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassTranslationModel) IsAliasOf

func (class *ClassTranslationModel) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassTranslationModel) IsDeleted

func (class *ClassTranslationModel) IsDeleted(ctx context.Context) bool

func (*ClassTranslationModel) SetProperty

func (class *ClassTranslationModel) SetProperty(ctx context.Context, name string, value any) error

type ClassVectorResponse

type ClassVectorResponse struct {
	embind.ClassBase
}

func NewClassVectorResponse

func NewClassVectorResponse(e embind.Engine, ctx context.Context) (*ClassVectorResponse, error)

func (*ClassVectorResponse) CallMethod

func (class *ClassVectorResponse) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassVectorResponse) Clone

func (*ClassVectorResponse) Delete

func (class *ClassVectorResponse) Delete(ctx context.Context) error

func (*ClassVectorResponse) DeleteLater

func (class *ClassVectorResponse) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassVectorResponse) Get

func (class *ClassVectorResponse) Get(ctx context.Context, arg0 uint32) (any, error)

func (*ClassVectorResponse) GetProperty

func (class *ClassVectorResponse) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassVectorResponse) IsAliasOf

func (class *ClassVectorResponse) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassVectorResponse) IsDeleted

func (class *ClassVectorResponse) IsDeleted(ctx context.Context) bool

func (*ClassVectorResponse) Push_back

func (class *ClassVectorResponse) Push_back(ctx context.Context, arg0 embind.ClassBase) error

func (*ClassVectorResponse) Resize

func (class *ClassVectorResponse) Resize(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) error

func (*ClassVectorResponse) Set

func (class *ClassVectorResponse) Set(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) (bool, error)

func (*ClassVectorResponse) SetProperty

func (class *ClassVectorResponse) SetProperty(ctx context.Context, name string, value any) error

func (*ClassVectorResponse) Size

func (class *ClassVectorResponse) Size(ctx context.Context) (uint32, error)

type ClassVectorResponseOptions

type ClassVectorResponseOptions struct {
	embind.ClassBase
}

func NewClassVectorResponseOptions

func NewClassVectorResponseOptions(e embind.Engine, ctx context.Context) (*ClassVectorResponseOptions, error)

func (*ClassVectorResponseOptions) CallMethod

func (class *ClassVectorResponseOptions) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassVectorResponseOptions) Clone

func (*ClassVectorResponseOptions) Delete

func (class *ClassVectorResponseOptions) Delete(ctx context.Context) error

func (*ClassVectorResponseOptions) DeleteLater

func (class *ClassVectorResponseOptions) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassVectorResponseOptions) Get

func (class *ClassVectorResponseOptions) Get(ctx context.Context, arg0 uint32) (any, error)

func (*ClassVectorResponseOptions) GetProperty

func (class *ClassVectorResponseOptions) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassVectorResponseOptions) IsAliasOf

func (class *ClassVectorResponseOptions) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassVectorResponseOptions) IsDeleted

func (class *ClassVectorResponseOptions) IsDeleted(ctx context.Context) bool

func (*ClassVectorResponseOptions) Push_back

func (class *ClassVectorResponseOptions) Push_back(ctx context.Context, arg0 map[string]any) error

func (*ClassVectorResponseOptions) Resize

func (class *ClassVectorResponseOptions) Resize(ctx context.Context, arg0 uint32, arg1 map[string]any) error

func (*ClassVectorResponseOptions) Set

func (class *ClassVectorResponseOptions) Set(ctx context.Context, arg0 uint32, arg1 map[string]any) (bool, error)

func (*ClassVectorResponseOptions) SetProperty

func (class *ClassVectorResponseOptions) SetProperty(ctx context.Context, name string, value any) error

func (*ClassVectorResponseOptions) Size

type ClassVectorString

type ClassVectorString struct {
	embind.ClassBase
}

func NewClassVectorString

func NewClassVectorString(e embind.Engine, ctx context.Context) (*ClassVectorString, error)

func (*ClassVectorString) CallMethod

func (class *ClassVectorString) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)

func (*ClassVectorString) Clone

func (*ClassVectorString) Delete

func (class *ClassVectorString) Delete(ctx context.Context) error

func (*ClassVectorString) DeleteLater

func (class *ClassVectorString) DeleteLater(ctx context.Context) (embind.ClassBase, error)

func (*ClassVectorString) Get

func (class *ClassVectorString) Get(ctx context.Context, arg0 uint32) (any, error)

func (*ClassVectorString) GetProperty

func (class *ClassVectorString) GetProperty(ctx context.Context, name string) (any, error)

func (*ClassVectorString) IsAliasOf

func (class *ClassVectorString) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)

func (*ClassVectorString) IsDeleted

func (class *ClassVectorString) IsDeleted(ctx context.Context) bool

func (*ClassVectorString) Push_back

func (class *ClassVectorString) Push_back(ctx context.Context, arg0 string) error

func (*ClassVectorString) Resize

func (class *ClassVectorString) Resize(ctx context.Context, arg0 uint32, arg1 string) error

func (*ClassVectorString) Set

func (class *ClassVectorString) Set(ctx context.Context, arg0 uint32, arg1 string) (bool, error)

func (*ClassVectorString) SetProperty

func (class *ClassVectorString) SetProperty(ctx context.Context, name string, value any) error

func (*ClassVectorString) Size

func (class *ClassVectorString) Size(ctx context.Context) (uint32, error)

Jump to

Keyboard shortcuts

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