Documentation
¶
Index ¶
- type Bridge
- func (b *Bridge) AddConsole(ctx context.Context, ctxPtr uint32) error
- func (b *Bridge) Alloc(ctx context.Context, size uint32) (uint32, error)
- func (b *Bridge) Call(ctx context.Context, ctxPtr, funcPtr, thisPtr uint32, args []uint32) (uint32, error)
- func (b *Bridge) CallConstructor(ctx context.Context, ctxPtr, funcPtr uint32, args []uint32) (uint32, error)
- func (b *Bridge) Close(ctx context.Context) error
- func (b *Bridge) DeleteProperty(ctx context.Context, ctxPtr, objPtr uint32, prop string) error
- func (b *Bridge) DupValue(ctx context.Context, ctxPtr, valPtr uint32) (uint32, error)
- func (b *Bridge) Eval(ctx context.Context, ctxPtr uint32, code, filename string, flags int32) (uint32, error)
- func (b *Bridge) EvalModule(ctx context.Context, ctxPtr uint32, code, filename string) (uint32, error)
- func (b *Bridge) ExecutePendingJobs(ctx context.Context, rtPtr uint32) (int32, error)
- func (b *Bridge) Free(ctx context.Context, ptr uint32) error
- func (b *Bridge) FreeContext(ctx context.Context, ctxPtr uint32) error
- func (b *Bridge) FreeRuntime(ctx context.Context, rtPtr uint32) error
- func (b *Bridge) FreeValue(ctx context.Context, ctxPtr, valPtr uint32) error
- func (b *Bridge) GetArrayBuffer(ctx context.Context, ctxPtr, valPtr uint32) ([]byte, error)
- func (b *Bridge) GetErrorMessage(ctx context.Context, ctxPtr, errPtr uint32) (string, error)
- func (b *Bridge) GetErrorStack(ctx context.Context, ctxPtr, errPtr uint32) (string, error)
- func (b *Bridge) GetException(ctx context.Context, ctxPtr uint32) (uint32, error)
- func (b *Bridge) GetGlobalObject(ctx context.Context, ctxPtr uint32) (uint32, error)
- func (b *Bridge) GetHeapPtr(ctx context.Context) (uint32, error)
- func (b *Bridge) GetHeapSize(ctx context.Context) (uint32, error)
- func (b *Bridge) GetProperty(ctx context.Context, ctxPtr, objPtr uint32, prop string) (uint32, error)
- func (b *Bridge) GetPropertyUint32(ctx context.Context, ctxPtr, objPtr, idx uint32) (uint32, error)
- func (b *Bridge) GetRuntime(ctx context.Context, ctxPtr uint32) (uint32, error)
- func (b *Bridge) HasException(ctx context.Context, ctxPtr uint32) (bool, error)
- func (b *Bridge) HasProperty(ctx context.Context, ctxPtr, objPtr uint32, prop string) (bool, error)
- func (b *Bridge) Instanceof(ctx context.Context, ctxPtr, valPtr, ctorPtr uint32) (bool, error)
- func (b *Bridge) Invoke(ctx context.Context, ctxPtr, objPtr uint32, method string, args []uint32) (uint32, error)
- func (b *Bridge) IsArray(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsBigInt(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsBool(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsDate(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsError(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsException(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsFunction(ctx context.Context, ctxPtr, valPtr uint32) (bool, error)
- func (b *Bridge) IsNull(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsNumber(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsObject(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsPromise(ctx context.Context, ctxPtr, valPtr uint32) (bool, error)
- func (b *Bridge) IsString(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsSymbol(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) IsUndefined(ctx context.Context, valPtr uint32) (bool, error)
- func (b *Bridge) JSONParse(ctx context.Context, ctxPtr uint32, json string) (uint32, error)
- func (b *Bridge) JSONStringify(ctx context.Context, ctxPtr, valPtr uint32) (string, error)
- func (b *Bridge) Memory() api.Memory
- func (b *Bridge) NewArray(ctx context.Context, ctxPtr uint32) (uint32, error)
- func (b *Bridge) NewArrayBuffer(ctx context.Context, ctxPtr uint32, data []byte) (uint32, error)
- func (b *Bridge) NewBigInt64(ctx context.Context, ctxPtr uint32, val int64) (uint32, error)
- func (b *Bridge) NewBigUint64(ctx context.Context, ctxPtr uint32, val uint64) (uint32, error)
- func (b *Bridge) NewBool(ctx context.Context, val bool) (uint32, error)
- func (b *Bridge) NewCFunction(ctx context.Context, ctxPtr, funcID uint32, name string, argCount int32) (uint32, error)
- func (b *Bridge) NewContext(ctx context.Context, rtPtr uint32) (uint32, error)
- func (b *Bridge) NewDate(ctx context.Context, ctxPtr uint32, epochMs float64) (uint32, error)
- func (b *Bridge) NewFloat64(ctx context.Context, val float64) (uint32, error)
- func (b *Bridge) NewInt32(ctx context.Context, val int32) (uint32, error)
- func (b *Bridge) NewInt64(ctx context.Context, ctxPtr uint32, val int64) (uint32, error)
- func (b *Bridge) NewNull(ctx context.Context) (uint32, error)
- func (b *Bridge) NewObject(ctx context.Context, ctxPtr uint32) (uint32, error)
- func (b *Bridge) NewRuntime(ctx context.Context) (uint32, error)
- func (b *Bridge) NewString(ctx context.Context, ctxPtr uint32, s string) (uint32, error)
- func (b *Bridge) NewStringLen(ctx context.Context, ctxPtr uint32, s string) (uint32, error)
- func (b *Bridge) NewUndefined(ctx context.Context) (uint32, error)
- func (b *Bridge) ReadBytes(ptr, length uint32) []byte
- func (b *Bridge) ReadCString(ptr, maxLen uint32) string
- func (b *Bridge) RegisterGoFunc(fn GoFunc) uint32
- func (b *Bridge) ResetHeap(ctx context.Context) error
- func (b *Bridge) RunGC(ctx context.Context, rtPtr uint32) error
- func (b *Bridge) SetLogFunc(fn func(msg string))
- func (b *Bridge) SetMaxStackSize(ctx context.Context, rtPtr, stackSize uint32) error
- func (b *Bridge) SetMemoryLimit(ctx context.Context, rtPtr, limit uint32) error
- func (b *Bridge) SetProperty(ctx context.Context, ctxPtr, objPtr uint32, prop string, valPtr uint32) error
- func (b *Bridge) SetPropertyUint32(ctx context.Context, ctxPtr, objPtr, idx, valPtr uint32) error
- func (b *Bridge) ThrowError(ctx context.Context, ctxPtr uint32, msg string) (uint32, error)
- func (b *Bridge) ThrowTypeError(ctx context.Context, ctxPtr uint32, msg string) (uint32, error)
- func (b *Bridge) ToBigInt64(ctx context.Context, ctxPtr, valPtr uint32) (int64, error)
- func (b *Bridge) ToBool(ctx context.Context, ctxPtr, valPtr uint32) (bool, error)
- func (b *Bridge) ToFloat64(ctx context.Context, ctxPtr, valPtr uint32) (float64, error)
- func (b *Bridge) ToInt32(ctx context.Context, ctxPtr, valPtr uint32) (int32, error)
- func (b *Bridge) ToInt64(ctx context.Context, ctxPtr, valPtr uint32) (int64, error)
- func (b *Bridge) ToString(ctx context.Context, ctxPtr, valPtr uint32) (string, error)
- func (b *Bridge) ToStringFull(ctx context.Context, ctxPtr, valPtr uint32) (string, error)
- func (b *Bridge) Typeof(ctx context.Context, ctxPtr, valPtr uint32) (string, error)
- func (b *Bridge) UnregisterGoFunc(funcID uint32)
- func (b *Bridge) WriteBytes(ctx context.Context, data []byte) (ptr uint32, err error)
- func (b *Bridge) WriteString(ctx context.Context, s string) (ptr uint32, err error)
- type GoFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func (*Bridge) CallConstructor ¶
func (*Bridge) DeleteProperty ¶
func (*Bridge) EvalModule ¶
func (*Bridge) ExecutePendingJobs ¶
func (*Bridge) GetArrayBuffer ¶
func (*Bridge) GetErrorMessage ¶
func (*Bridge) GetErrorStack ¶
func (*Bridge) GetException ¶
func (*Bridge) GetGlobalObject ¶
func (*Bridge) GetProperty ¶
func (*Bridge) GetPropertyUint32 ¶
func (*Bridge) GetRuntime ¶
func (*Bridge) HasException ¶
func (*Bridge) HasProperty ¶
func (*Bridge) Instanceof ¶
func (*Bridge) IsException ¶
func (*Bridge) IsFunction ¶
func (*Bridge) IsUndefined ¶
func (*Bridge) JSONStringify ¶
func (*Bridge) NewArrayBuffer ¶
func (*Bridge) NewBigInt64 ¶
func (*Bridge) NewBigUint64 ¶
func (*Bridge) NewCFunction ¶
func (*Bridge) NewContext ¶
func (*Bridge) NewFloat64 ¶
func (*Bridge) NewStringLen ¶
func (*Bridge) ReadCString ¶
func (*Bridge) RegisterGoFunc ¶
func (*Bridge) SetLogFunc ¶
func (*Bridge) SetMaxStackSize ¶
func (*Bridge) SetMemoryLimit ¶
func (*Bridge) SetProperty ¶
func (*Bridge) SetPropertyUint32 ¶
func (*Bridge) ThrowError ¶
func (*Bridge) ThrowTypeError ¶
func (*Bridge) ToBigInt64 ¶
func (*Bridge) ToStringFull ¶
func (*Bridge) UnregisterGoFunc ¶
func (*Bridge) WriteBytes ¶
Click to show internal directories.
Click to hide internal directories.