ffi

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MPL-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferToByteArray

func BufferToByteArray(buffer unsafe.Pointer, size int) []byte

func FromBoolValue

func FromBoolValue(boolValue *wrapperspb.BoolValue) *bool

func FromDoubleValue

func FromDoubleValue(value *wrapperspb.DoubleValue) *float64

func FromInt32Value

func FromInt32Value(value *wrapperspb.Int32Value) *int32

func FromStringValue

func FromStringValue(value *wrapperspb.StringValue) *string

func GetInt64FromMessage

func GetInt64FromMessage(buffer unsafe.Pointer, size int) int64

func GetStringFromMessage

func GetStringFromMessage(buffer unsafe.Pointer, size int) string

func Init

func Init(api unsafe.Pointer)

func NonEmptyBytes

func NonEmptyBytes(bytes []byte) []byte

func SendByteArrayMessage

func SendByteArrayMessage(port int64, value []byte)

func SendEmptyMessage

func SendEmptyMessage(port int64)

func SendErrorMessage

func SendErrorMessage(port int64, err error)

func SendInt64Message

func SendInt64Message(port int64, value int64)

func SendInt64ToPort

func SendInt64ToPort(port int64, msg int64)

func SendJsonMessage

func SendJsonMessage(port int64, v interface{})

func SendMessage

func SendMessage(port int64, m proto.Message)

func SendStringMessage

func SendStringMessage(port int64, value string)

func SendStringToPort

func SendStringToPort(port int64, value string)

func SendUInt8ArrayToPort

func SendUInt8ArrayToPort(port int64, value []uint8)

func Unmarshal

func Unmarshal(buffer unsafe.Pointer, size int, m proto.Message)

func UnmarshalBytes

func UnmarshalBytes(bytes []byte, m proto.Message)

Types

type UTypedData

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

Jump to

Keyboard shortcuts

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