raw_objects

package
v0.220.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMethod

func CallMethod(object RawPointer, method_name string, kwargs map[string]any) (any, error)

func EncodeRawObject

func EncodeRawObject(object RawPointer) *cffi.BamlObjectHandle

func NewRawObject

func NewRawObject(rt unsafe.Pointer, objectType cffi.BamlObjectType, kwargs []*cffi.HostMapEntry) (any, error)

newRawObject creates a new refcounted rawObject

func SetDecodeRawObjectImpl

func SetDecodeRawObjectImpl(impl func(rt unsafe.Pointer, cRaw *cffi.BamlObjectHandle) (RawPointer, error))

Types

type RawObject

type RawObject struct {
	// contains filtered or unexported fields
}

func FromPointer

func FromPointer(ptr int64, rt unsafe.Pointer) *RawObject

func (*RawObject) Pointer

func (r *RawObject) Pointer() int64

func (*RawObject) Runtime added in v0.203.0

func (r *RawObject) Runtime() unsafe.Pointer

type RawPointer

type RawPointer interface {
	ObjectType() cffi.BamlObjectType

	Runtime() unsafe.Pointer
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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