Class: OpalKelly::OkBuffer

Inherits:
Object
  • Object
show all
Defined in:
ext/OpalKelly/FrontPanelDLL_wrap.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24078

SWIGINTERN VALUE _wrap_new_okBuffer(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[1];
  int ii;
  
  argc = nargs;
  if (argc > 1) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_okBuffer__SWIG_0(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKelly__Buffer, SWIG_POINTER_NO_NULL);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_okBuffer__SWIG_2(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_okBuffer__SWIG_1(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 1, "Buffer.new", 
    "    Buffer.new()\n"
    "    Buffer.new(size_t size)\n"
    "    Buffer.new(OpalKelly::Buffer const &buf)\n");
  
  return Qnil;
}

Instance Method Details

#GetSize(*args) ⇒ Object



24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24145

SWIGINTERN VALUE
_wrap_okBuffer_GetSize(int argc, VALUE *argv, VALUE self) {
  OpalKelly::Buffer *arg1 = (OpalKelly::Buffer *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKelly__Buffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::Buffer const *","GetSize", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::Buffer * >(argp1);
  result = ((OpalKelly::Buffer const *)arg1)->GetSize();
  vresult = SWIG_From_size_t(static_cast< size_t >(result));
  return vresult;
fail:
  return Qnil;
}

#IsEmpty(*args) ⇒ Object



24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24121

SWIGINTERN VALUE
_wrap_okBuffer_IsEmpty(int argc, VALUE *argv, VALUE self) {
  OpalKelly::Buffer *arg1 = (OpalKelly::Buffer *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKelly__Buffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKelly::Buffer const *","IsEmpty", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKelly::Buffer * >(argp1);
  result = (bool)((OpalKelly::Buffer const *)arg1)->IsEmpty();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}