github.com/cyrilou242/gomobile-java@v0.0.0-20220215185836-09daef25a210/bind/testdata/universe.golden (about)

     1  // Code generated by gobind. DO NOT EDIT.
     2  
     3  // Package main is an autogenerated binder stub for package universe.
     4  //
     5  //   autogenerated by gobind -lang=go
     6  package main
     7  
     8  /*
     9  #include <stdlib.h>
    10  #include <stdint.h>
    11  #include "seq.h"
    12  #include "universe.h"
    13  
    14  */
    15  import "C"
    16  
    17  import (
    18  	_seq "github.com/cyrilou242/gomobile-java/bind/seq"
    19  )
    20  
    21  // suppress the error if seq ends up unused
    22  var _ = _seq.FromRefNum
    23  
    24  //export proxy_error_Error
    25  func proxy_error_Error(refnum C.int32_t) C.nstring {
    26  	ref := _seq.FromRefNum(int32(refnum))
    27  	v := ref.Get().(error)
    28  	res_0 := v.Error()
    29  	_res_0 := encodeString(res_0)
    30  	return _res_0
    31  }
    32  
    33  type proxy_error _seq.Ref
    34  
    35  func (p *proxy_error) Bind_proxy_refnum__() int32 {
    36  	return (*_seq.Ref)(p).Bind_IncNum()
    37  }
    38  
    39  func (p *proxy_error) Error() string {
    40  	res := C.cproxy_error_Error(C.int32_t(p.Bind_proxy_refnum__()))
    41  	_res := decodeString(res)
    42  	return _res
    43  }