Class: Rlibmemcached::MemcachedSt

Inherits:
Object
  • Object
show all
Defined in:
ext/rlibmemcached/rlibmemcached_wrap.c

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6884

SWIGINTERN VALUE
_wrap_new_MemcachedSt(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (struct memcached_st *)calloc(1, sizeof(struct memcached_st));
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#cached_errno(*args) ⇒ Object



5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5312

SWIGINTERN VALUE
_wrap_MemcachedSt_cached_errno_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (int) ((arg1)->cached_errno);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

#cached_errno=(*args) ⇒ Object



5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5283

SWIGINTERN VALUE
_wrap_MemcachedSt_cached_errno_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] ));
  } 
  arg2 = (int)(val2);
  if (arg1) (arg1)->cached_errno = arg2;
  return Qnil;
fail:
  return Qnil;
}

#call_calloc(*args) ⇒ Object



6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6386

SWIGINTERN VALUE
_wrap_MemcachedSt_call_calloc_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_calloc_function 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_calloc", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->call_calloc);
  vresult = SWIG_NewPointerObj((memcached_calloc_function *)memcpy((memcached_calloc_function *)calloc(1,sizeof(memcached_calloc_function)),&result,sizeof(memcached_calloc_function)), SWIGTYPE_p_memcached_calloc_function, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#call_calloc=(*args) ⇒ Object



6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6351

SWIGINTERN VALUE
_wrap_MemcachedSt_call_calloc_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_calloc_function arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_calloc", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_calloc_function,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_calloc_function","call_calloc", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_calloc_function","call_calloc", 2, argv[0]));
    } else {
      arg2 = *((memcached_calloc_function *)(argp2));
    }
  }
  if (arg1) (arg1)->call_calloc = arg2;
  return Qnil;
fail:
  return Qnil;
}

#call_free(*args) ⇒ Object



6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6209

SWIGINTERN VALUE
_wrap_MemcachedSt_call_free_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_free_function 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_free", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->call_free);
  vresult = SWIG_NewPointerObj((memcached_free_function *)memcpy((memcached_free_function *)calloc(1,sizeof(memcached_free_function)),&result,sizeof(memcached_free_function)), SWIGTYPE_p_memcached_free_function, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#call_free=(*args) ⇒ Object



6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6174

SWIGINTERN VALUE
_wrap_MemcachedSt_call_free_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_free_function arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_free", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_free_function,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_free_function","call_free", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_free_function","call_free", 2, argv[0]));
    } else {
      arg2 = *((memcached_free_function *)(argp2));
    }
  }
  if (arg1) (arg1)->call_free = arg2;
  return Qnil;
fail:
  return Qnil;
}

#call_malloc(*args) ⇒ Object



6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6268

SWIGINTERN VALUE
_wrap_MemcachedSt_call_malloc_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_malloc_function 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_malloc", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->call_malloc);
  vresult = SWIG_NewPointerObj((memcached_malloc_function *)memcpy((memcached_malloc_function *)calloc(1,sizeof(memcached_malloc_function)),&result,sizeof(memcached_malloc_function)), SWIGTYPE_p_memcached_malloc_function, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#call_malloc=(*args) ⇒ Object



6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6233

SWIGINTERN VALUE
_wrap_MemcachedSt_call_malloc_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_malloc_function arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_malloc", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_malloc_function,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_malloc_function","call_malloc", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_malloc_function","call_malloc", 2, argv[0]));
    } else {
      arg2 = *((memcached_malloc_function *)(argp2));
    }
  }
  if (arg1) (arg1)->call_malloc = arg2;
  return Qnil;
fail:
  return Qnil;
}

#call_realloc(*args) ⇒ Object



6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6327

SWIGINTERN VALUE
_wrap_MemcachedSt_call_realloc_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_realloc_function 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_realloc", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->call_realloc);
  vresult = SWIG_NewPointerObj((memcached_realloc_function *)memcpy((memcached_realloc_function *)calloc(1,sizeof(memcached_realloc_function)),&result,sizeof(memcached_realloc_function)), SWIGTYPE_p_memcached_realloc_function, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#call_realloc=(*args) ⇒ Object



6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6292

SWIGINTERN VALUE
_wrap_MemcachedSt_call_realloc_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_realloc_function arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_realloc", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_realloc_function,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_realloc_function","call_realloc", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_realloc_function","call_realloc", 2, argv[0]));
    } else {
      arg2 = *((memcached_realloc_function *)(argp2));
    }
  }
  if (arg1) (arg1)->call_realloc = arg2;
  return Qnil;
fail:
  return Qnil;
}

#connect_timeout(*args) ⇒ Object



5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5483

SWIGINTERN VALUE
_wrap_MemcachedSt_connect_timeout_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->connect_timeout);
  vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)calloc(1,sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#connect_timeout=(*args) ⇒ Object



5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5448

SWIGINTERN VALUE
_wrap_MemcachedSt_connect_timeout_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","connect_timeout", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","connect_timeout", 2, argv[0]));
    } else {
      arg2 = *((int32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->connect_timeout = arg2;
  return Qnil;
fail:
  return Qnil;
}

#continuum(*args) ⇒ Object



6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6032

SWIGINTERN VALUE
_wrap_MemcachedSt_continuum_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_continuum_item_st *result = 0 ;
  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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (memcached_continuum_item_st *) ((arg1)->continuum);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_continuum_item_st, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#continuum=(*args) ⇒ Object



6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6003

SWIGINTERN VALUE
_wrap_MemcachedSt_continuum_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_continuum_item_st *arg2 = (memcached_continuum_item_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_continuum_item_st, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_continuum_item_st *","continuum", 2, argv[0] )); 
  }
  arg2 = (memcached_continuum_item_st *)(argp2);
  if (arg1) (arg1)->continuum = arg2;
  return Qnil;
fail:
  return Qnil;
}

#continuum_count(*args) ⇒ Object



5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5601

SWIGINTERN VALUE
_wrap_MemcachedSt_continuum_count_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->continuum_count);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#continuum_count=(*args) ⇒ Object



5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5566

SWIGINTERN VALUE
_wrap_MemcachedSt_continuum_count_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_count", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_count", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->continuum_count = arg2;
  return Qnil;
fail:
  return Qnil;
}

#continuum_points_counter(*args) ⇒ Object



4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4661

SWIGINTERN VALUE
_wrap_MemcachedSt_continuum_points_counter_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_points_counter", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->continuum_points_counter);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#continuum_points_counter=(*args) ⇒ Object



4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4626

SWIGINTERN VALUE
_wrap_MemcachedSt_continuum_points_counter_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_points_counter", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_points_counter", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_points_counter", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->continuum_points_counter = arg2;
  return Qnil;
fail:
  return Qnil;
}

#cursor_server(*args) ⇒ Object



5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5257

SWIGINTERN VALUE
_wrap_MemcachedSt_cursor_server_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cursor_server", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->cursor_server);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#cursor_server=(*args) ⇒ Object



5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5222

SWIGINTERN VALUE
_wrap_MemcachedSt_cursor_server_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cursor_server", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","cursor_server", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","cursor_server", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->cursor_server = arg2;
  return Qnil;
fail:
  return Qnil;
}

#delete_trigger(*args) ⇒ Object



6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6504

SWIGINTERN VALUE
_wrap_MemcachedSt_delete_trigger_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_trigger_delete_key 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->delete_trigger);
  vresult = SWIG_NewPointerObj((memcached_trigger_delete_key *)memcpy((memcached_trigger_delete_key *)calloc(1,sizeof(memcached_trigger_delete_key)),&result,sizeof(memcached_trigger_delete_key)), SWIGTYPE_p_memcached_trigger_delete_key, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#delete_trigger=(*args) ⇒ Object



6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6469

SWIGINTERN VALUE
_wrap_MemcachedSt_delete_trigger_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_trigger_delete_key arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_trigger_delete_key,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_trigger_delete_key","delete_trigger", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_trigger_delete_key","delete_trigger", 2, argv[0]));
    } else {
      arg2 = *((memcached_trigger_delete_key *)(argp2));
    }
  }
  if (arg1) (arg1)->delete_trigger = arg2;
  return Qnil;
fail:
  return Qnil;
}

#distribution(*args) ⇒ Object



4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4533

SWIGINTERN VALUE
_wrap_MemcachedSt_distribution_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint8_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->distribution);
  vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
  return vresult;
fail:
  return Qnil;
}

#distribution=(*args) ⇒ Object



4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4504

SWIGINTERN VALUE
_wrap_MemcachedSt_distribution_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint8_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","distribution", 2, argv[0] ));
  } 
  arg2 = (uint8_t)(val2);
  if (arg1) (arg1)->distribution = arg2;
  return Qnil;
fail:
  return Qnil;
}

#flags(*args) ⇒ Object



5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5365

SWIGINTERN VALUE
_wrap_MemcachedSt_flags_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->flags);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}

#flags=(*args) ⇒ Object



5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5336

SWIGINTERN VALUE
_wrap_MemcachedSt_flags_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","flags", 2, argv[0] ));
  } 
  arg2 = (uint32_t)(val2);
  if (arg1) (arg1)->flags = arg2;
  return Qnil;
fail:
  return Qnil;
}

#get_key_failure(*args) ⇒ Object



6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6445

SWIGINTERN VALUE
_wrap_MemcachedSt_get_key_failure_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_trigger_key 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->get_key_failure);
  vresult = SWIG_NewPointerObj((memcached_trigger_key *)memcpy((memcached_trigger_key *)calloc(1,sizeof(memcached_trigger_key)),&result,sizeof(memcached_trigger_key)), SWIGTYPE_p_memcached_trigger_key, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#get_key_failure=(*args) ⇒ Object



6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6410

SWIGINTERN VALUE
_wrap_MemcachedSt_get_key_failure_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_trigger_key arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_trigger_key,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_trigger_key","get_key_failure", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_trigger_key","get_key_failure", 2, argv[0]));
    } else {
      arg2 = *((memcached_trigger_key *)(argp2));
    }
  }
  if (arg1) (arg1)->get_key_failure = arg2;
  return Qnil;
fail:
  return Qnil;
}

#hash(*args) ⇒ Object

call-seq:

hash -> uint8_t

Hashing function for class.



4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4602

SWIGINTERN VALUE
_wrap_MemcachedSt_hash_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint8_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->hash);
  vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
  return vresult;
fail:
  return Qnil;
}

#hash=(*args) ⇒ Object

call-seq:

hash=(x) -> uint8_t

Hashing function for class.



4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4573

SWIGINTERN VALUE
_wrap_MemcachedSt_hash_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint8_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","hash", 2, argv[0] ));
  } 
  arg2 = (uint8_t)(val2);
  if (arg1) (arg1)->hash = arg2;
  return Qnil;
fail:
  return Qnil;
}

#hash_continuum(*args) ⇒ Object



5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5920

SWIGINTERN VALUE
_wrap_MemcachedSt_hash_continuum_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_hash 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash_continuum", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (memcached_hash) ((arg1)->hash_continuum);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

#hash_continuum=(*args) ⇒ Object



5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5891

SWIGINTERN VALUE
_wrap_MemcachedSt_hash_continuum_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_hash arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash_continuum", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_hash","hash_continuum", 2, argv[0] ));
  } 
  arg2 = (memcached_hash)(val2);
  if (arg1) (arg1)->hash_continuum = arg2;
  return Qnil;
fail:
  return Qnil;
}

#hosts(*args) ⇒ Object



4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4716

SWIGINTERN VALUE
_wrap_MemcachedSt_hosts_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_server_st *result = 0 ;
  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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hosts", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (memcached_server_st *) ((arg1)->hosts);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#hosts=(*args) ⇒ Object



4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4687

SWIGINTERN VALUE
_wrap_MemcachedSt_hosts_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_server_st *arg2 = (memcached_server_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hosts", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_server_st, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","hosts", 2, argv[0] )); 
  }
  arg2 = (memcached_server_st *)(argp2);
  if (arg1) (arg1)->hosts = arg2;
  return Qnil;
fail:
  return Qnil;
}

#io_bytes_watermark(*args) ⇒ Object



5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5074

SWIGINTERN VALUE
_wrap_MemcachedSt_io_bytes_watermark_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_bytes_watermark", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->io_bytes_watermark);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#io_bytes_watermark=(*args) ⇒ Object



5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5039

SWIGINTERN VALUE
_wrap_MemcachedSt_io_bytes_watermark_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_bytes_watermark", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_bytes_watermark", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_bytes_watermark", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->io_bytes_watermark = arg2;
  return Qnil;
fail:
  return Qnil;
}

#io_key_prefetch(*args) ⇒ Object



5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5135

SWIGINTERN VALUE
_wrap_MemcachedSt_io_key_prefetch_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_key_prefetch", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->io_key_prefetch);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#io_key_prefetch=(*args) ⇒ Object



5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5100

SWIGINTERN VALUE
_wrap_MemcachedSt_io_key_prefetch_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_key_prefetch", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_key_prefetch", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_key_prefetch", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->io_key_prefetch = arg2;
  return Qnil;
fail:
  return Qnil;
}

#io_msg_watermark(*args) ⇒ Object



5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5013

SWIGINTERN VALUE
_wrap_MemcachedSt_io_msg_watermark_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_msg_watermark", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->io_msg_watermark);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#io_msg_watermark=(*args) ⇒ Object



4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4978

SWIGINTERN VALUE
_wrap_MemcachedSt_io_msg_watermark_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_msg_watermark", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_msg_watermark", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_msg_watermark", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->io_msg_watermark = arg2;
  return Qnil;
fail:
  return Qnil;
}

#is_allocated(*args) ⇒ Object



4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4480

SWIGINTERN VALUE
_wrap_MemcachedSt_is_allocated_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","is_allocated", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (bool) ((arg1)->is_allocated);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

#is_allocated=(*args) ⇒ Object



4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4451

SWIGINTERN VALUE
_wrap_MemcachedSt_is_allocated_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","is_allocated", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] ));
  } 
  arg2 = (bool)(val2);
  if (arg1) (arg1)->is_allocated = arg2;
  return Qnil;
fail:
  return Qnil;
}

#last_server_key(*args) ⇒ Object



6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6845

SWIGINTERN VALUE
_wrap_MemcachedSt_last_server_key_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","last_server_key", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (int) ((arg1)->last_server_key);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

#last_server_key=(*args) ⇒ Object



6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6816

SWIGINTERN VALUE
_wrap_MemcachedSt_last_server_key_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","last_server_key", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","last_server_key", 2, argv[0] ));
  } 
  arg2 = (int)(val2);
  if (arg1) (arg1)->last_server_key = arg2;
  return Qnil;
fail:
  return Qnil;
}

#live_host_indices(*args) ⇒ Object



6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6678

SWIGINTERN VALUE
_wrap_MemcachedSt_live_host_indices_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t *result = 0 ;
  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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (uint32_t *) ((arg1)->live_host_indices);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#live_host_indices=(*args) ⇒ Object



6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6649

SWIGINTERN VALUE
_wrap_MemcachedSt_live_host_indices_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t *arg2 = (uint32_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_uint32_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t *","live_host_indices", 2, argv[0] )); 
  }
  arg2 = (uint32_t *)(argp2);
  if (arg1) (arg1)->live_host_indices = arg2;
  return Qnil;
fail:
  return Qnil;
}

#live_host_indices_size(*args) ⇒ Object



6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6737

SWIGINTERN VALUE
_wrap_MemcachedSt_live_host_indices_size_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices_size", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->live_host_indices_size);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#live_host_indices_size=(*args) ⇒ Object



6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6702

SWIGINTERN VALUE
_wrap_MemcachedSt_live_host_indices_size_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices_size", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","live_host_indices_size", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","live_host_indices_size", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->live_host_indices_size = arg2;
  return Qnil;
fail:
  return Qnil;
}

#next_distribution_rebuild(*args) ⇒ Object



5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5812

SWIGINTERN VALUE
_wrap_MemcachedSt_next_distribution_rebuild_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  time_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","next_distribution_rebuild", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->next_distribution_rebuild);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}

#next_distribution_rebuild=(*args) ⇒ Object



5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5784

SWIGINTERN VALUE
_wrap_MemcachedSt_next_distribution_rebuild_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  time_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","next_distribution_rebuild", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    if (NIL_P(argv[0]))
    arg2 = (time_t)-1;
    else
    arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
  }
  if (arg1) (arg1)->next_distribution_rebuild = arg2;
  return Qnil;
fail:
  return Qnil;
}

#number_of_hosts(*args) ⇒ Object



5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5196

SWIGINTERN VALUE
_wrap_MemcachedSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->number_of_hosts);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#number_of_hosts=(*args) ⇒ Object



5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5161

SWIGINTERN VALUE
_wrap_MemcachedSt_number_of_hosts_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_hosts", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_hosts", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->number_of_hosts = arg2;
  return Qnil;
fail:
  return Qnil;
}

#number_of_live_hosts(*args) ⇒ Object



6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6623

SWIGINTERN VALUE
_wrap_MemcachedSt_number_of_live_hosts_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_live_hosts", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->number_of_live_hosts);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#number_of_live_hosts=(*args) ⇒ Object



6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6588

SWIGINTERN VALUE
_wrap_MemcachedSt_number_of_live_hosts_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_live_hosts", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_live_hosts", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_live_hosts", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->number_of_live_hosts = arg2;
  return Qnil;
fail:
  return Qnil;
}

#on_cleanup(*args) ⇒ Object



6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6150

SWIGINTERN VALUE
_wrap_MemcachedSt_on_cleanup_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_cleanup_func 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->on_cleanup);
  vresult = SWIG_NewPointerObj((memcached_cleanup_func *)memcpy((memcached_cleanup_func *)calloc(1,sizeof(memcached_cleanup_func)),&result,sizeof(memcached_cleanup_func)), SWIGTYPE_p_memcached_cleanup_func, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#on_cleanup=(*args) ⇒ Object



6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6115

SWIGINTERN VALUE
_wrap_MemcachedSt_on_cleanup_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_cleanup_func arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_cleanup_func,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_cleanup_func","on_cleanup", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_cleanup_func","on_cleanup", 2, argv[0]));
    } else {
      arg2 = *((memcached_cleanup_func *)(argp2));
    }
  }
  if (arg1) (arg1)->on_cleanup = arg2;
  return Qnil;
fail:
  return Qnil;
}

#on_clone(*args) ⇒ Object



6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6091

SWIGINTERN VALUE
_wrap_MemcachedSt_on_clone_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_clone_func 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->on_clone);
  vresult = SWIG_NewPointerObj((memcached_clone_func *)memcpy((memcached_clone_func *)calloc(1,sizeof(memcached_clone_func)),&result,sizeof(memcached_clone_func)), SWIGTYPE_p_memcached_clone_func, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#on_clone=(*args) ⇒ Object



6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6056

SWIGINTERN VALUE
_wrap_MemcachedSt_on_clone_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_clone_func arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_clone_func,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_clone_func","on_clone", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_clone_func","on_clone", 2, argv[0]));
    } else {
      arg2 = *((memcached_clone_func *)(argp2));
    }
  }
  if (arg1) (arg1)->on_clone = arg2;
  return Qnil;
fail:
  return Qnil;
}

#poll_max_retries(*args) ⇒ Object



4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4893

SWIGINTERN VALUE
_wrap_MemcachedSt_poll_max_retries_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_max_retries", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->poll_max_retries);
  vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)calloc(1,sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#poll_max_retries=(*args) ⇒ Object



4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4858

SWIGINTERN VALUE
_wrap_MemcachedSt_poll_max_retries_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_max_retries", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","poll_max_retries", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","poll_max_retries", 2, argv[0]));
    } else {
      arg2 = *((int32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->poll_max_retries = arg2;
  return Qnil;
fail:
  return Qnil;
}

#poll_timeout(*args) ⇒ Object



5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5424

SWIGINTERN VALUE
_wrap_MemcachedSt_poll_timeout_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->poll_timeout);
  vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)calloc(1,sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#poll_timeout=(*args) ⇒ Object



5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5389

SWIGINTERN VALUE
_wrap_MemcachedSt_poll_timeout_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","poll_timeout", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","poll_timeout", 2, argv[0]));
    } else {
      arg2 = *((int32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->poll_timeout = arg2;
  return Qnil;
fail:
  return Qnil;
}

#prefix_key(*args) ⇒ Object



6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6558

SWIGINTERN VALUE
_wrap_MemcachedSt_prefix_key_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (char *)(char *) ((arg1)->prefix_key);
  {
    size_t size = SWIG_strnlen(result, MEMCACHED_PREFIX_KEY_MAX_SIZE);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#prefix_key=(*args) ⇒ Object



6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6528

SWIGINTERN VALUE
_wrap_MemcachedSt_prefix_key_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[MEMCACHED_PREFIX_KEY_MAX_SIZE] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, MEMCACHED_PREFIX_KEY_MAX_SIZE);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [MEMCACHED_PREFIX_KEY_MAX_SIZE]","prefix_key", 2, argv[0] ));
  }
  arg2 = (char *)(temp2);
  if (arg2) memcpy(arg1->prefix_key,arg2,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char));
  else memset(arg1->prefix_key,0,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#prefix_key_length(*args) ⇒ Object



5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5867

SWIGINTERN VALUE
_wrap_MemcachedSt_prefix_key_length_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->prefix_key_length);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}

#prefix_key_length=(*args) ⇒ Object



5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5838

SWIGINTERN VALUE
_wrap_MemcachedSt_prefix_key_length_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prefix_key_length", 2, argv[0] ));
  } 
  arg2 = (size_t)(val2);
  if (arg1) (arg1)->prefix_key_length = arg2;
  return Qnil;
fail:
  return Qnil;
}

#purging(*args) ⇒ Object



4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4427

SWIGINTERN VALUE
_wrap_MemcachedSt_purging_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint8_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","purging", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->purging);
  vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
  return vresult;
fail:
  return Qnil;
}

#purging=(*args) ⇒ Object



4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4398

SWIGINTERN VALUE
_wrap_MemcachedSt_purging_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint8_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","purging", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","purging", 2, argv[0] ));
  } 
  arg2 = (uint8_t)(val2);
  if (arg1) (arg1)->purging = arg2;
  return Qnil;
fail:
  return Qnil;
}

#rcv_timeout(*args) ⇒ Object



4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4834

SWIGINTERN VALUE
_wrap_MemcachedSt_rcv_timeout_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","rcv_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->rcv_timeout);
  vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)calloc(1,sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#rcv_timeout=(*args) ⇒ Object



4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4799

SWIGINTERN VALUE
_wrap_MemcachedSt_rcv_timeout_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","rcv_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","rcv_timeout", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","rcv_timeout", 2, argv[0]));
    } else {
      arg2 = *((int32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->rcv_timeout = arg2;
  return Qnil;
fail:
  return Qnil;
}

#recv_size(*args) ⇒ Object



5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5709

SWIGINTERN VALUE
_wrap_MemcachedSt_recv_size_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (int) ((arg1)->recv_size);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

#recv_size=(*args) ⇒ Object



5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5680

SWIGINTERN VALUE
_wrap_MemcachedSt_recv_size_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","recv_size", 2, argv[0] ));
  } 
  arg2 = (int)(val2);
  if (arg1) (arg1)->recv_size = arg2;
  return Qnil;
fail:
  return Qnil;
}

#result(*args) ⇒ Object



5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5979

SWIGINTERN VALUE
_wrap_MemcachedSt_result_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_result_st 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->result);
  vresult = SWIG_NewPointerObj((memcached_result_st *)memcpy((memcached_result_st *)calloc(1,sizeof(memcached_result_st)),&result,sizeof(memcached_result_st)), SWIGTYPE_p_memcached_result_st, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#result=(*args) ⇒ Object



5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5944

SWIGINTERN VALUE
_wrap_MemcachedSt_result_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  memcached_result_st arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_result_st,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st","result", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_result_st","result", 2, argv[0]));
    } else {
      arg2 = *((memcached_result_st *)(argp2));
    }
  }
  if (arg1) (arg1)->result = arg2;
  return Qnil;
fail:
  return Qnil;
}

#retry_timeout(*args) ⇒ Object



5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5542

SWIGINTERN VALUE
_wrap_MemcachedSt_retry_timeout_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->retry_timeout);
  vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)calloc(1,sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#retry_timeout=(*args) ⇒ Object



5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5507

SWIGINTERN VALUE
_wrap_MemcachedSt_retry_timeout_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","retry_timeout", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","retry_timeout", 2, argv[0]));
    } else {
      arg2 = *((int32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->retry_timeout = arg2;
  return Qnil;
fail:
  return Qnil;
}

#sasl_callbacks(*args) ⇒ Object



6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6792

SWIGINTERN VALUE
_wrap_MemcachedSt_sasl_callbacks_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  sasl_callback_t *result = 0 ;
  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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","sasl_callbacks", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (sasl_callback_t *) ((arg1)->sasl_callbacks);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sasl_callback_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#sasl_callbacks=(*args) ⇒ Object



6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6763

SWIGINTERN VALUE
_wrap_MemcachedSt_sasl_callbacks_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  sasl_callback_t *arg2 = (sasl_callback_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","sasl_callbacks", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_sasl_callback_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "sasl_callback_t const *","sasl_callbacks", 2, argv[0] )); 
  }
  arg2 = (sasl_callback_t *)(argp2);
  if (arg1) (arg1)->sasl_callbacks = (sasl_callback_t const *)arg2;
  return Qnil;
fail:
  return Qnil;
}

#send_size(*args) ⇒ Object



5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5656

SWIGINTERN VALUE
_wrap_MemcachedSt_send_size_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int 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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (int) ((arg1)->send_size);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

#send_size=(*args) ⇒ Object



5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5627

SWIGINTERN VALUE
_wrap_MemcachedSt_send_size_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","send_size", 2, argv[0] ));
  } 
  arg2 = (int)(val2);
  if (arg1) (arg1)->send_size = arg2;
  return Qnil;
fail:
  return Qnil;
}

#server_failure_limit(*args) ⇒ Object



4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4952

SWIGINTERN VALUE
_wrap_MemcachedSt_server_failure_limit_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","server_failure_limit", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->server_failure_limit);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

#server_failure_limit=(*args) ⇒ Object



4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4917

SWIGINTERN VALUE
_wrap_MemcachedSt_server_failure_limit_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","server_failure_limit", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","server_failure_limit", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","server_failure_limit", 2, argv[0]));
    } else {
      arg2 = *((uint32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->server_failure_limit = arg2;
  return Qnil;
fail:
  return Qnil;
}

#snd_timeout(*args) ⇒ Object



4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4775

SWIGINTERN VALUE
_wrap_MemcachedSt_snd_timeout_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","snd_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result =  ((arg1)->snd_timeout);
  vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)calloc(1,sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#snd_timeout=(*args) ⇒ Object



4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 4740

SWIGINTERN VALUE
_wrap_MemcachedSt_snd_timeout_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","snd_timeout", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","snd_timeout", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","snd_timeout", 2, argv[0]));
    } else {
      arg2 = *((int32_t *)(argp2));
    }
  }
  if (arg1) (arg1)->snd_timeout = arg2;
  return Qnil;
fail:
  return Qnil;
}

#user_data(*args) ⇒ Object



5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5760

SWIGINTERN VALUE
_wrap_MemcachedSt_user_data_get(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  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_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  result = (void *) ((arg1)->user_data);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

#user_data=(*args) ⇒ Object



5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 5733

SWIGINTERN VALUE
_wrap_MemcachedSt_user_data_set(int argc, VALUE *argv, VALUE self) {
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self )); 
  }
  arg1 = (struct memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","user_data", 2, argv[0] )); 
  }
  if (arg1) (arg1)->user_data = arg2;
  return Qnil;
fail:
  return Qnil;
}