40 lines
867 B
Go
40 lines
867 B
Go
// Code generated by kitcom. DO NOT EDIT.
|
|
|
|
package main
|
|
|
|
import (
|
|
kittenipc "efprojects.com/kitten-ipc"
|
|
"fmt"
|
|
"reflect"
|
|
)
|
|
|
|
type TsIpcApi struct {
|
|
Ipc kittenipc.IpcCommon
|
|
}
|
|
|
|
func (self *TsIpcApi) Div(
|
|
a int, b int,
|
|
) (
|
|
int, error,
|
|
) {
|
|
results, err := self.Ipc.Call("TsIpcApi.Div", self.Ipc.Serialize(a), self.Ipc.Serialize(b))
|
|
if err != nil {
|
|
return 0, fmt.Errorf("call to TsIpcApi.Div failed: %w", err)
|
|
}
|
|
_ = results
|
|
return int(results[0].(float64)), nil
|
|
}
|
|
|
|
func (self *TsIpcApi) XorData(
|
|
data1 []byte, data2 []byte,
|
|
) (
|
|
[]byte, error,
|
|
) {
|
|
results, err := self.Ipc.Call("TsIpcApi.XorData", self.Ipc.Serialize(data1), self.Ipc.Serialize(data2))
|
|
if err != nil {
|
|
return []byte{}, fmt.Errorf("call to TsIpcApi.XorData failed: %w", err)
|
|
}
|
|
_ = results
|
|
return self.Ipc.ConvType(reflect.TypeOf([]byte{}), reflect.TypeOf(""), results[0]).([]byte), nil
|
|
}
|