Class: OpalKelly::OkBuffer
- Inherits:
-
Object
- Object
- OpalKelly::OkBuffer
- Defined in:
- ext/OpalKelly/FrontPanelDLL_wrap.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24013
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
24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24080
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
24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 |
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 24056
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;
}
|