blob: 8c476130f5d61319e8ff9c1799b55ae4135d10bf [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
// Do not modify!
// Generated by rpcapi
////////////////////////////////////////////////////////////////////////////////
package test
import "fmt"
func (c callAdd) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "Add(a: %v, b: %v)",
c.a, c.b,
)
}
func (r resultAdd) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callEnumToString) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "EnumToString(e: %v)",
c.e,
)
}
func (r resultEnumToString) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callGetStruct) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetStruct()")
}
func (r resultGetStruct) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callSetStruct) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "SetStruct(s: %v)",
c.s,
)
}
func (r resultSetStruct) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "void")
}
func (c callGetResource) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetResource()")
}
func (r resultGetResource) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callUseResource) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "UseResource(r: %v)",
c.r,
)
}
func (r resultUseResource) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "void")
}
func (c callResolveResource) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "ResolveResource(r: %v)",
c.r,
)
}
func (r resultResolveResource) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callGetSingleListNode) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetSingleListNode()")
}
func (r resultGetSingleListNode) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callGetListNodeChain) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetListNodeChain()")
}
func (r resultGetListNodeChain) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callGetListNodeChainArray) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetListNodeChainArray()")
}
func (r resultGetListNodeChainArray) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callGetBase) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetBase()")
}
func (r resultGetBase) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (c callGetDerived) Format(f fmt.State, r rune) {
fmt.Fprintf(f, "GetDerived()")
}
func (r resultGetDerived) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "res: %#v", r.value)
}
func (h ResourceId) Valid() bool {
return h.ID.Valid()
}
func (a BaseArray) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "[%d]Baseˢ", len(a))
}
func (a ListNodeArray) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "[%d]ListNodeˢ", len(a))
}
func (a ListNodePtrArray) Format(f fmt.State, c rune) {
fmt.Fprintf(f, "[%d]ListNodeᵖˢ", len(a))
}
func (i Enum) IsOne() bool { return i == EnumOne }
func (i Enum) IsTwo() bool { return i == EnumTwo }
func (i Enum) IsThree() bool { return i == EnumThree }
func CreateResource(
Int uint32,
Float float32,
String string,
) *Resource {
return &Resource{
Int: Int,
Float: Float,
String: String,
}
}
func (c *Resource) GetInt() uint32 { return c.Int }
func (c *Resource) GetFloat() float32 { return c.Float }
func (c *Resource) GetString() string { return c.String }
func CreateStruct(
String string,
U32 uint32,
Enum Enum,
) *Struct {
return &Struct{
String: String,
U32: U32,
Enum: Enum,
}
}
func (c *Struct) GetString() string { return c.String }
func (c *Struct) GetU32() uint32 { return c.U32 }
func (c *Struct) GetEnum() Enum { return c.Enum }
func CreateListNode(
Name string,
Next *ListNode,
) *ListNode {
return &ListNode{
Name: Name,
Next: Next,
}
}
func (c *ListNode) GetName() string { return c.Name }
func (c *ListNode) GetNext() *ListNode { return c.Next }
func CreateDerived(
Name string,
Enum Enum,
) *Derived {
return &Derived{
Name: Name,
Enum: Enum,
}
}
func (c *Derived) GetName() string { return c.Name }
func (c *Derived) GetEnum() Enum { return c.Enum }