Module: Rlibmemcached

Defined in:
lib/memcached.rb,
ext/rlibmemcached/rlibmemcached_wrap.c

Overview

The generated SWIG module for accessing libmemcached’s C API.

Includes the full set of libmemcached static methods (as defined in $INCLUDE_PATH/libmemcached/memcached.h), and classes for the available structs:

  • Rlibmemcached::MemcachedResultSt

  • Rlibmemcached::MemcachedServerSt

  • Rlibmemcached::MemcachedSt

  • Rlibmemcached::MemcachedStatSt

  • Rlibmemcached::MemcachedStringSt

A number of SWIG typemaps and C helper methods are also defined in ext/libmemcached.i.

Defined Under Namespace

Classes: MemcachedAnalysisSt, MemcachedResultSt, MemcachedServerSt, MemcachedSt, MemcachedStatSt

Constant Summary collapse

MEMCACHED_VERSION_STRING_LENGTH =
SWIG_From_int((int)(24))
LIBMEMCACHED_VERSION_STRING =
SWIG_FromCharPtr("0.32")
MEMCACHED_DEFAULT_PORT =
SWIG_From_int((int)(11211))
MEMCACHED_MAX_KEY =
SWIG_From_int((int)(251))
MEMCACHED_MAX_BUFFER =
SWIG_From_int((int)(8196))
MEMCACHED_MAX_HOST_LENGTH =
SWIG_From_int((int)(64))
MEMCACHED_MAX_HOST_SORT_LENGTH =
SWIG_From_int((int)(86))
MEMCACHED_POINTS_PER_SERVER =
SWIG_From_int((int)(100))
MEMCACHED_POINTS_PER_SERVER_KETAMA =
SWIG_From_int((int)(160))
MEMCACHED_CONTINUUM_SIZE =
SWIG_From_int((int)(100*100))
MEMCACHED_STRIDE =
SWIG_From_int((int)(4))
MEMCACHED_DEFAULT_TIMEOUT =
SWIG_From_int((int)(1000))
MEMCACHED_CONTINUUM_ADDITION =
SWIG_From_int((int)(10))
MEMCACHED_PREFIX_KEY_MAX_SIZE =
SWIG_From_int((int)(128))
MEMCACHED_EXPIRATION_NOT_ADD =
SWIG_From_unsigned_SS_int((unsigned int)(0xffffffffU))
MEMCACHED_SUCCESS =
SWIG_From_int((int)(MEMCACHED_SUCCESS))
MEMCACHED_FAILURE =
SWIG_From_int((int)(MEMCACHED_FAILURE))
MEMCACHED_HOST_LOOKUP_FAILURE =
SWIG_From_int((int)(MEMCACHED_HOST_LOOKUP_FAILURE))
MEMCACHED_CONNECTION_FAILURE =
SWIG_From_int((int)(MEMCACHED_CONNECTION_FAILURE))
MEMCACHED_CONNECTION_BIND_FAILURE =
SWIG_From_int((int)(MEMCACHED_CONNECTION_BIND_FAILURE))
MEMCACHED_WRITE_FAILURE =
SWIG_From_int((int)(MEMCACHED_WRITE_FAILURE))
MEMCACHED_READ_FAILURE =
SWIG_From_int((int)(MEMCACHED_READ_FAILURE))
MEMCACHED_UNKNOWN_READ_FAILURE =
SWIG_From_int((int)(MEMCACHED_UNKNOWN_READ_FAILURE))
MEMCACHED_PROTOCOL_ERROR =
SWIG_From_int((int)(MEMCACHED_PROTOCOL_ERROR))
MEMCACHED_CLIENT_ERROR =
SWIG_From_int((int)(MEMCACHED_CLIENT_ERROR))
MEMCACHED_SERVER_ERROR =
SWIG_From_int((int)(MEMCACHED_SERVER_ERROR))
MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE =
SWIG_From_int((int)(MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE))
MEMCACHED_DATA_EXISTS =
SWIG_From_int((int)(MEMCACHED_DATA_EXISTS))
MEMCACHED_DATA_DOES_NOT_EXIST =
SWIG_From_int((int)(MEMCACHED_DATA_DOES_NOT_EXIST))
MEMCACHED_NOTSTORED =
SWIG_From_int((int)(MEMCACHED_NOTSTORED))
MEMCACHED_STORED =
SWIG_From_int((int)(MEMCACHED_STORED))
MEMCACHED_NOTFOUND =
SWIG_From_int((int)(MEMCACHED_NOTFOUND))
MEMCACHED_MEMORY_ALLOCATION_FAILURE =
SWIG_From_int((int)(MEMCACHED_MEMORY_ALLOCATION_FAILURE))
MEMCACHED_PARTIAL_READ =
SWIG_From_int((int)(MEMCACHED_PARTIAL_READ))
MEMCACHED_SOME_ERRORS =
SWIG_From_int((int)(MEMCACHED_SOME_ERRORS))
MEMCACHED_NO_SERVERS =
SWIG_From_int((int)(MEMCACHED_NO_SERVERS))
MEMCACHED_END =
SWIG_From_int((int)(MEMCACHED_END))
MEMCACHED_DELETED =
SWIG_From_int((int)(MEMCACHED_DELETED))
MEMCACHED_VALUE =
SWIG_From_int((int)(MEMCACHED_VALUE))
MEMCACHED_STAT =
SWIG_From_int((int)(MEMCACHED_STAT))
MEMCACHED_ITEM =
SWIG_From_int((int)(MEMCACHED_ITEM))
MEMCACHED_ERRNO =
SWIG_From_int((int)(MEMCACHED_ERRNO))
MEMCACHED_FAIL_UNIX_SOCKET =
SWIG_From_int((int)(MEMCACHED_FAIL_UNIX_SOCKET))
MEMCACHED_NOT_SUPPORTED =
SWIG_From_int((int)(MEMCACHED_NOT_SUPPORTED))
MEMCACHED_NO_KEY_PROVIDED =
SWIG_From_int((int)(MEMCACHED_NO_KEY_PROVIDED))
MEMCACHED_FETCH_NOTFINISHED =
SWIG_From_int((int)(MEMCACHED_FETCH_NOTFINISHED))
MEMCACHED_TIMEOUT =
SWIG_From_int((int)(MEMCACHED_TIMEOUT))
MEMCACHED_BUFFERED =
SWIG_From_int((int)(MEMCACHED_BUFFERED))
MEMCACHED_BAD_KEY_PROVIDED =
SWIG_From_int((int)(MEMCACHED_BAD_KEY_PROVIDED))
MEMCACHED_INVALID_HOST_PROTOCOL =
SWIG_From_int((int)(MEMCACHED_INVALID_HOST_PROTOCOL))
MEMCACHED_SERVER_MARKED_DEAD =
SWIG_From_int((int)(MEMCACHED_SERVER_MARKED_DEAD))
MEMCACHED_UNKNOWN_STAT_KEY =
SWIG_From_int((int)(MEMCACHED_UNKNOWN_STAT_KEY))
MEMCACHED_AUTH_PROBLEM =
SWIG_From_int((int)(MEMCACHED_AUTH_PROBLEM))
MEMCACHED_AUTH_FAILURE =
SWIG_From_int((int)(MEMCACHED_AUTH_FAILURE))
MEMCACHED_AUTH_CONTINUE =
SWIG_From_int((int)(MEMCACHED_AUTH_CONTINUE))
MEMCACHED_MAXIMUM_RETURN =
SWIG_From_int((int)(MEMCACHED_MAXIMUM_RETURN))
MEMCACHED_DISTRIBUTION_MODULA =
SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_MODULA))
MEMCACHED_DISTRIBUTION_CONSISTENT =
SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT))
MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA =
SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA))
MEMCACHED_DISTRIBUTION_RANDOM =
SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_RANDOM))
MEMCACHED_BEHAVIOR_NO_BLOCK =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NO_BLOCK))
MEMCACHED_BEHAVIOR_TCP_NODELAY =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_TCP_NODELAY))
MEMCACHED_BEHAVIOR_HASH =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_HASH))
MEMCACHED_BEHAVIOR_KETAMA =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_KETAMA))
MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE))
MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE))
MEMCACHED_BEHAVIOR_CACHE_LOOKUPS =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_CACHE_LOOKUPS))
MEMCACHED_BEHAVIOR_SUPPORT_CAS =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SUPPORT_CAS))
MEMCACHED_BEHAVIOR_POLL_TIMEOUT =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_POLL_TIMEOUT))
MEMCACHED_BEHAVIOR_POLL_MAX_RETRIES =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_POLL_MAX_RETRIES))
MEMCACHED_BEHAVIOR_DISTRIBUTION =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_DISTRIBUTION))
MEMCACHED_BEHAVIOR_BUFFER_REQUESTS =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_BUFFER_REQUESTS))
MEMCACHED_BEHAVIOR_USER_DATA =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_USER_DATA))
MEMCACHED_BEHAVIOR_SORT_HOSTS =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SORT_HOSTS))
MEMCACHED_BEHAVIOR_VERIFY_KEY =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_VERIFY_KEY))
MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT))
MEMCACHED_BEHAVIOR_RETRY_TIMEOUT =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_RETRY_TIMEOUT))
MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED))
MEMCACHED_BEHAVIOR_KETAMA_HASH =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_KETAMA_HASH))
MEMCACHED_BEHAVIOR_BINARY_PROTOCOL =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_BINARY_PROTOCOL))
MEMCACHED_BEHAVIOR_SND_TIMEOUT =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SND_TIMEOUT))
MEMCACHED_BEHAVIOR_RCV_TIMEOUT =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_RCV_TIMEOUT))
MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT))
MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK))
MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK))
MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH))
MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY))
MEMCACHED_BEHAVIOR_NOREPLY =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NOREPLY))
MEMCACHED_BEHAVIOR_USE_UDP =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_USE_UDP))
MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS =
SWIG_From_int((int)(MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS))
MEMCACHED_CALLBACK_PREFIX_KEY =
SWIG_From_int((int)(MEMCACHED_CALLBACK_PREFIX_KEY))
MEMCACHED_CALLBACK_USER_DATA =
SWIG_From_int((int)(MEMCACHED_CALLBACK_USER_DATA))
MEMCACHED_CALLBACK_CLEANUP_FUNCTION =
SWIG_From_int((int)(MEMCACHED_CALLBACK_CLEANUP_FUNCTION))
MEMCACHED_CALLBACK_CLONE_FUNCTION =
SWIG_From_int((int)(MEMCACHED_CALLBACK_CLONE_FUNCTION))
MEMCACHED_CALLBACK_GET_FAILURE =
SWIG_From_int((int)(MEMCACHED_CALLBACK_GET_FAILURE))
MEMCACHED_CALLBACK_DELETE_TRIGGER =
SWIG_From_int((int)(MEMCACHED_CALLBACK_DELETE_TRIGGER))
MEMCACHED_HASH_DEFAULT =
SWIG_From_int((int)(MEMCACHED_HASH_DEFAULT))
MEMCACHED_HASH_MD5 =
SWIG_From_int((int)(MEMCACHED_HASH_MD5))
MEMCACHED_HASH_CRC =
SWIG_From_int((int)(MEMCACHED_HASH_CRC))
MEMCACHED_HASH_FNV1_64 =
SWIG_From_int((int)(MEMCACHED_HASH_FNV1_64))
MEMCACHED_HASH_FNV1A_64 =
SWIG_From_int((int)(MEMCACHED_HASH_FNV1A_64))
MEMCACHED_HASH_FNV1_32 =
SWIG_From_int((int)(MEMCACHED_HASH_FNV1_32))
MEMCACHED_HASH_FNV1A_32 =
SWIG_From_int((int)(MEMCACHED_HASH_FNV1A_32))
MEMCACHED_HASH_HSIEH =
SWIG_From_int((int)(MEMCACHED_HASH_HSIEH))
MEMCACHED_HASH_MURMUR =
SWIG_From_int((int)(MEMCACHED_HASH_MURMUR))
MEMCACHED_HASH_JENKINS =
SWIG_From_int((int)(MEMCACHED_HASH_JENKINS))
MEMCACHED_HASH_NONE =
SWIG_From_int((int)(MEMCACHED_HASH_NONE))
MEMCACHED_CONNECTION_UNKNOWN =
SWIG_From_int((int)(MEMCACHED_CONNECTION_UNKNOWN))
MEMCACHED_CONNECTION_TCP =
SWIG_From_int((int)(MEMCACHED_CONNECTION_TCP))
MEMCACHED_CONNECTION_UDP =
SWIG_From_int((int)(MEMCACHED_CONNECTION_UDP))
MEMCACHED_CONNECTION_UNIX_SOCKET =
SWIG_From_int((int)(MEMCACHED_CONNECTION_UNIX_SOCKET))
GET_LEN_ARG_UNSPECIFIED =
SWIG_From_unsigned_SS_int((unsigned int)(-1U))
GET_LEN_BUFSZ =
SWIG_From_int((int)(32))

Class Method Summary collapse

Class Method Details

.memcached_add(*args) ⇒ Object



9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9371

SWIGINTERN VALUE
_wrap_memcached_add(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  uint32_t arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[3], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_add", 6, argv[3] ));
  } 
  arg6 = (time_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_add", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  result = (memcached_return)memcached_add(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_add_by_key(*args) ⇒ Object



9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9717

SWIGINTERN VALUE
_wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  char *arg6 = (char *) 0 ;
  size_t arg7 ;
  time_t arg8 ;
  uint32_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg6 = RSTRING_PTR(str);
    arg7 = RSTRING_LEN(str);
  }
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[3], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "time_t","memcached_add_by_key", 8, argv[3] ));
  } 
  arg8 = (time_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_add_by_key", 9, argv[4] ));
  } 
  arg9 = (uint32_t)(val9);
  result = (memcached_return)memcached_add_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_analyze(*args) ⇒ Object



12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12406

SWIGINTERN VALUE
_wrap_memcached_analyze(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
  memcached_return *arg3 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  memcached_return temp3 ;
  int res3 = SWIG_TMPOBJ ;
  memcached_analysis_st *result = 0 ;
  VALUE vresult = Qnil;
  
  arg3 = &temp3;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_analyze", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_analyze", 2, argv[1] )); 
  }
  arg2 = (memcached_stat_st *)(argp2);
  result = (memcached_analysis_st *)memcached_analyze(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_analysis_st, 0 |  0 );
  if (SWIG_IsTmpObj(res3)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg3)));
  } else {
    int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_append(*args) ⇒ Object



9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9483

SWIGINTERN VALUE
_wrap_memcached_append(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  uint32_t arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[3], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_append", 6, argv[3] ));
  } 
  arg6 = (time_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_append", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  result = (memcached_return)memcached_append(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_append_by_key(*args) ⇒ Object



9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9891

SWIGINTERN VALUE
_wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  char *arg6 = (char *) 0 ;
  size_t arg7 ;
  time_t arg8 ;
  uint32_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg6 = RSTRING_PTR(str);
    arg7 = RSTRING_LEN(str);
  }
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[3], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "time_t","memcached_append_by_key", 8, argv[3] ));
  } 
  arg8 = (time_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_append_by_key", 9, argv[4] ));
  } 
  arg9 = (uint32_t)(val9);
  result = (memcached_return)memcached_append_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_behavior_get(*args) ⇒ Object



7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7597

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

.memcached_behavior_set(*args) ⇒ Object



7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7557

SWIGINTERN VALUE
_wrap_memcached_behavior_set(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_behavior arg2 ;
  uint64_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  unsigned long long val3 ;
  int ecode3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior","memcached_behavior_set", 2, argv[1] ));
  } 
  arg2 = (memcached_behavior)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","memcached_behavior_set", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  result = (memcached_return)memcached_behavior_set(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_callback_get(*args) ⇒ Object



8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8443

SWIGINTERN VALUE
_wrap_memcached_callback_get(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_callback arg2 ;
  memcached_return *arg3 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  memcached_return temp3 ;
  int res3 = SWIG_TMPOBJ ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  arg3 = &temp3;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_get", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback","memcached_callback_get", 2, argv[1] ));
  } 
  arg2 = (memcached_callback)(val2);
  result = (void *)memcached_callback_get(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  if (SWIG_IsTmpObj(res3)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg3)));
  } else {
    int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_callback_set(*args) ⇒ Object



8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8401

SWIGINTERN VALUE
_wrap_memcached_callback_set(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_callback arg2 ;
  void *arg3 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_set", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback","memcached_callback_set", 2, argv[1] ));
  } 
  arg2 = (memcached_callback)(val2);
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    if (RSTRING_LEN(str) == 0) {
      arg3 = NULL;
    } else {
      arg3 = RSTRING_PTR(str);
    }
  }
  result = (memcached_return)memcached_callback_set(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_cas(*args) ⇒ Object



9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9595

SWIGINTERN VALUE
_wrap_memcached_cas(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  uint32_t arg7 ;
  uint64_t arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  unsigned long long val8 ;
  int ecode8 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[3], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_cas", 6, argv[3] ));
  } 
  arg6 = (time_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_cas", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint64_t","memcached_cas", 8, argv[5] ));
  } 
  arg8 = (uint64_t)(val8);
  result = (memcached_return)memcached_cas(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_cas_by_key(*args) ⇒ Object



9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9949

SWIGINTERN VALUE
_wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  char *arg6 = (char *) 0 ;
  size_t arg7 ;
  time_t arg8 ;
  uint32_t arg9 ;
  uint64_t arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  unsigned long long val10 ;
  int ecode10 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg6 = RSTRING_PTR(str);
    arg7 = RSTRING_LEN(str);
  }
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[3], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "time_t","memcached_cas_by_key", 8, argv[3] ));
  } 
  arg8 = (time_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_cas_by_key", 9, argv[4] ));
  } 
  arg9 = (uint32_t)(val9);
  ecode10 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "uint64_t","memcached_cas_by_key", 10, argv[5] ));
  } 
  arg10 = (uint64_t)(val10);
  result = (memcached_return)memcached_cas_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9,arg10);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_clone(*args) ⇒ Object



6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6984

SWIGINTERN VALUE
_wrap_memcached_clone(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_st *arg2 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  memcached_st *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 2, argv[1] )); 
  }
  arg2 = (memcached_st *)(argp2);
  result = (memcached_st *)memcached_clone(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

.memcached_create(*args) ⇒ Object



6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6939

SWIGINTERN VALUE
_wrap_memcached_create(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_st *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_create", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (memcached_st *)memcached_create(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

.memcached_decrement(*args) ⇒ Object



7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7106

SWIGINTERN VALUE
_wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint32_t arg4 ;
  uint64_t *arg5 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  uint64_t temp5 ;
  int res5 = SWIG_TMPOBJ ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  arg5 = &temp5;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_decrement", 4, argv[2] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (memcached_return)memcached_decrement(arg1,(char const *)arg2,arg3,arg4,arg5);
  vresult = SWIG_From_int((int)(result));
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint64_t, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_decrement_with_initial(*args) ⇒ Object



7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7234

SWIGINTERN VALUE
_wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  time_t arg6 ;
  uint64_t *arg7 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  uint64_t temp7 ;
  int res7 = SWIG_TMPOBJ ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  arg7 = &temp7;
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement_with_initial", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_uint64_t,  0 );
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial", 4, argv[2] )); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial", 4, argv[2]));
    } else {
      arg4 = *((uint64_t *)(argp4));
    }
  }
  {
    res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_uint64_t,  0 );
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial", 5, argv[3] )); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial", 5, argv[3]));
    } else {
      arg5 = *((uint64_t *)(argp5));
    }
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[4], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_decrement_with_initial", 6, argv[4] ));
  } 
  arg6 = (time_t)(val6);
  result = (memcached_return)memcached_decrement_with_initial(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  if (SWIG_IsTmpObj(res7)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg7)));
  } else {
    int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint64_t, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_delete(*args) ⇒ Object



7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7016

SWIGINTERN VALUE
_wrap_memcached_delete(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  time_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "time_t","memcached_delete", 4, argv[2] ));
  } 
  arg4 = (time_t)(val4);
  result = (memcached_return)memcached_delete(arg1,(char const *)arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_delete_by_key(*args) ⇒ Object



8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8313

SWIGINTERN VALUE
_wrap_memcached_delete_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[2], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_delete_by_key", 6, argv[2] ));
  } 
  arg6 = (time_t)(val6);
  result = (memcached_return)memcached_delete_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_destroy_sasl_auth_data(*args) ⇒ Object



12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12547

SWIGINTERN VALUE
_wrap_memcached_destroy_sasl_auth_data(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_destroy_sasl_auth_data", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (memcached_return)memcached_destroy_sasl_auth_data(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_dump(*args) ⇒ Object



8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8485

SWIGINTERN VALUE
_wrap_memcached_dump(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_dump_func *arg2 = (memcached_dump_func *) 0 ;
  void *arg3 = (void *) 0 ;
  uint32_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  void *argp4 ;
  int res4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_dump", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_dump_func, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_dump_func *","memcached_dump", 2, argv[1] )); 
  }
  arg2 = (memcached_dump_func *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_dump", 3, argv[2] )); 
  }
  {
    res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_uint32_t,  0 );
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint32_t","memcached_dump", 4, argv[3] )); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_dump", 4, argv[3]));
    } else {
      arg4 = *((uint32_t *)(argp4));
    }
  }
  result = (memcached_return)memcached_dump(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_exist(*args) ⇒ Object



12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12718

SWIGINTERN VALUE
_wrap_memcached_exist(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_exist", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = (memcached_return)memcached_exist(arg1,(char const *)arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_exist_by_key(*args) ⇒ Object



12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12750

SWIGINTERN VALUE
_wrap_memcached_exist_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_exist_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_exist_by_key", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_exist_by_key", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  {
    VALUE str;
    str = rb_string_value(&argv[3]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  result = (memcached_return)memcached_exist_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_fetch(*args) ⇒ Object



9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9135

SWIGINTERN VALUE
_wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  size_t *arg4 = (size_t *) 0 ;
  uint32_t *arg5 = (uint32_t *) 0 ;
  memcached_return *arg6 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  size_t temp4 ;
  int res4 = SWIG_TMPOBJ ;
  uint32_t temp5 ;
  int res5 = SWIG_TMPOBJ ;
  memcached_return temp6 ;
  int res6 = SWIG_TMPOBJ ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  arg5 = &temp5;
  arg6 = &temp6;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_fetch", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","memcached_fetch", 3, argv[2] )); 
  }
  arg3 = (size_t *)(argp3);
  result = (char *)memcached_fetch(arg1,arg2,arg3,arg4,arg5,arg6);
  vresult = SWIG_FromCharPtr((const char *)result);
  {
    rb_ary_push(vresult, rb_str_new(arg2, *arg3));
  }
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
  }
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res6)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg6)));
  } else {
    int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_memcached_return, new_flags));
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_fetch_execute(*args) ⇒ Object



8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8355

SWIGINTERN VALUE
_wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_execute_function *arg2 = (memcached_execute_function *) 0 ;
  void *arg3 = (void *) 0 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_execute", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_execute_function, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_execute_function *","memcached_fetch_execute", 2, argv[1] )); 
  }
  arg2 = (memcached_execute_function *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_fetch_execute", 3, argv[2] )); 
  }
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_fetch_execute", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (memcached_return)memcached_fetch_execute(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_fetch_result(*args) ⇒ Object



9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9211

SWIGINTERN VALUE
_wrap_memcached_fetch_result(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_result_st *arg2 = (memcached_result_st *) 0 ;
  memcached_return *arg3 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  memcached_return temp3 ;
  int res3 = SWIG_TMPOBJ ;
  memcached_result_st *result = 0 ;
  VALUE vresult = Qnil;
  
  arg3 = &temp3;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_result", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_fetch_result", 2, argv[1] )); 
  }
  arg2 = (memcached_result_st *)(argp2);
  result = (memcached_result_st *)memcached_fetch_result(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (SWIG_IsTmpObj(res3)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg3)));
  } else {
    int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_fetch_rvalue(*args) ⇒ Object



12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12853

SWIGINTERN VALUE
_wrap_memcached_fetch_rvalue(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char **arg2 = (char **) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  uint32_t *arg4 = (uint32_t *) 0 ;
  memcached_return *arg5 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t temp4 ;
  int res4 = SWIG_TMPOBJ ;
  memcached_return temp5 ;
  int res5 = SWIG_TMPOBJ ;
  VALUE result;
  VALUE vresult = Qnil;
  
  {
    const char *key_ptr;
    size_t key_length_ptr;
    arg2 = &key_ptr;
    arg3 = &key_length_ptr;
  }
  arg4 = &temp4;
  arg5 = &temp5;
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_rvalue", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (VALUE)memcached_fetch_rvalue(arg1,(char const **)arg2,arg3,arg4,arg5);
  vresult = result;
  {
    rb_ary_push(vresult, rb_str_new(*arg2, *arg3));
  }
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_flush(*args) ⇒ Object



7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7440

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

.memcached_flush_buffers(*args) ⇒ Object



7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7699

SWIGINTERN VALUE
_wrap_memcached_flush_buffers(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_flush_buffers", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (memcached_return)memcached_flush_buffers(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_free(*args) ⇒ Object



6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6963

SWIGINTERN VALUE
_wrap_memcached_free(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_free", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  memcached_free(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_generate_hash(*args) ⇒ Object



7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7665

SWIGINTERN VALUE
_wrap_memcached_generate_hash(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_generate_hash", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = memcached_generate_hash(arg1,(char const *)arg2,arg3);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_generate_hash_rvalue(*args) ⇒ Object



13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 13032

SWIGINTERN VALUE
_wrap_memcached_generate_hash_rvalue(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  size_t arg2 ;
  memcached_hash arg3 ;
  int val3 ;
  int ecode3 = 0 ;
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    VALUE str;
    str = rb_string_value(&argv[0]);
    arg1 = RSTRING_PTR(str);
    arg2 = RSTRING_LEN(str);
  }
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "memcached_hash","memcached_generate_hash_rvalue", 3, argv[1] ));
  } 
  arg3 = (memcached_hash)(val3);
  result = (VALUE)memcached_generate_hash_rvalue((char const *)arg1,arg2,arg3);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}

.memcached_generate_hash_value(*args) ⇒ Object



7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7631

SWIGINTERN VALUE
_wrap_memcached_generate_hash_value(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  size_t arg2 ;
  memcached_hash arg3 ;
  int val3 ;
  int ecode3 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    VALUE str;
    str = rb_string_value(&argv[0]);
    arg1 = RSTRING_PTR(str);
    arg2 = RSTRING_LEN(str);
  }
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "memcached_hash","memcached_generate_hash_value", 3, argv[1] ));
  } 
  arg3 = (memcached_hash)(val3);
  result = memcached_generate_hash_value((char const *)arg1,arg2,arg3);
  {
    vresult = UINT2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get(*args) ⇒ Object



8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8752

SWIGINTERN VALUE
_wrap_memcached_get(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  size_t *arg4 = (size_t *) 0 ;
  uint32_t *arg5 = (uint32_t *) 0 ;
  memcached_return *arg6 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t temp4 ;
  int res4 = SWIG_TMPOBJ ;
  uint32_t temp5 ;
  int res5 = SWIG_TMPOBJ ;
  memcached_return temp6 ;
  int res6 = SWIG_TMPOBJ ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  arg5 = &temp5;
  arg6 = &temp6;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = (char *)memcached_get(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  vresult = SWIG_FromCharPtr((const char *)result);
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
  }
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res6)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg6)));
  } else {
    int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get_by_key(*args) ⇒ Object



8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8988

SWIGINTERN VALUE
_wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  uint32_t arg6 ;
  size_t *arg7 = (size_t *) 0 ;
  uint32_t *arg8 = (uint32_t *) 0 ;
  memcached_return *arg9 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  size_t temp7 ;
  int res7 = SWIG_TMPOBJ ;
  uint32_t temp8 ;
  int res8 = SWIG_TMPOBJ ;
  memcached_return temp9 ;
  int res9 = SWIG_TMPOBJ ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  arg7 = &temp7;
  arg8 = &temp8;
  arg9 = &temp9;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[2], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "uint32_t","memcached_get_by_key", 6, argv[2] ));
  } 
  arg6 = (uint32_t)(val6);
  result = (char *)memcached_get_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9);
  vresult = SWIG_FromCharPtr((const char *)result);
  if (SWIG_IsTmpObj(res7)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg7)));
  } else {
    int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_size_t, new_flags));
  }
  if (SWIG_IsTmpObj(res8)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg8)));
  } else {
    int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res9)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg9)));
  } else {
    int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get_from_last(*args) ⇒ Object



9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9253

SWIGINTERN VALUE
_wrap_memcached_get_from_last(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  size_t *arg4 = (size_t *) 0 ;
  uint32_t *arg5 = (uint32_t *) 0 ;
  memcached_return *arg6 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t temp4 ;
  int res4 = SWIG_TMPOBJ ;
  uint32_t temp5 ;
  int res5 = SWIG_TMPOBJ ;
  memcached_return temp6 ;
  int res6 = SWIG_TMPOBJ ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  arg5 = &temp5;
  arg6 = &temp6;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_from_last", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = (char *)memcached_get_from_last(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  vresult = SWIG_FromCharPtr((const char *)result);
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
  }
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res6)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg6)));
  } else {
    int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get_from_last_rvalue(*args) ⇒ Object



12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12801

SWIGINTERN VALUE
_wrap_memcached_get_from_last_rvalue(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint32_t *arg4 = (uint32_t *) 0 ;
  memcached_return *arg5 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t temp4 ;
  int res4 = SWIG_TMPOBJ ;
  memcached_return temp5 ;
  int res5 = SWIG_TMPOBJ ;
  VALUE result;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  arg5 = &temp5;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_from_last_rvalue", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = (VALUE)memcached_get_from_last_rvalue(arg1,(char const *)arg2,arg3,arg4,arg5);
  vresult = result;
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get_len(*args) ⇒ Object



8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8814

SWIGINTERN VALUE
_wrap_memcached_get_len(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint32_t arg4 ;
  size_t *arg5 = (size_t *) 0 ;
  uint32_t *arg6 = (uint32_t *) 0 ;
  memcached_return *arg7 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  size_t temp5 ;
  int res5 = SWIG_TMPOBJ ;
  uint32_t temp6 ;
  int res6 = SWIG_TMPOBJ ;
  memcached_return temp7 ;
  int res7 = SWIG_TMPOBJ ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  arg5 = &temp5;
  arg6 = &temp6;
  arg7 = &temp7;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_len", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_get_len", 4, argv[2] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (char *)memcached_get_len(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
  vresult = SWIG_FromCharPtr((const char *)result);
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_size_t, new_flags));
  }
  if (SWIG_IsTmpObj(res6)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg6)));
  } else {
    int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res7)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg7)));
  } else {
    int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get_memory_allocators(*args) ⇒ Object



8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8617

SWIGINTERN VALUE
_wrap_memcached_get_memory_allocators(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_malloc_function *arg2 = (memcached_malloc_function *) 0 ;
  memcached_free_function *arg3 = (memcached_free_function *) 0 ;
  memcached_realloc_function *arg4 = (memcached_realloc_function *) 0 ;
  memcached_calloc_function *arg5 = (memcached_calloc_function *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_memory_allocators", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_malloc_function, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_malloc_function *","memcached_get_memory_allocators", 2, argv[1] )); 
  }
  arg2 = (memcached_malloc_function *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_free_function, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_free_function *","memcached_get_memory_allocators", 3, argv[2] )); 
  }
  arg3 = (memcached_free_function *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_memcached_realloc_function, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "memcached_realloc_function *","memcached_get_memory_allocators", 4, argv[3] )); 
  }
  arg4 = (memcached_realloc_function *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_memcached_calloc_function, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "memcached_calloc_function *","memcached_get_memory_allocators", 5, argv[4] )); 
  }
  arg5 = (memcached_calloc_function *)(argp5);
  memcached_get_memory_allocators(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}

.memcached_get_rvalue(*args) ⇒ Object



12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12908

SWIGINTERN VALUE
_wrap_memcached_get_rvalue(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint32_t *arg4 = (uint32_t *) 0 ;
  memcached_return *arg5 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t temp4 ;
  int res4 = SWIG_TMPOBJ ;
  memcached_return temp5 ;
  int res5 = SWIG_TMPOBJ ;
  VALUE result;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  arg5 = &temp5;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_rvalue", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = (VALUE)memcached_get_rvalue(arg1,(char const *)arg2,arg3,arg4,arg5);
  vresult = result;
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_uint32_t, new_flags));
  }
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_get_sasl_callbacks(*args) ⇒ Object



12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12571

SWIGINTERN VALUE
_wrap_memcached_get_sasl_callbacks(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  sasl_callback_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_sasl_callbacks", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (sasl_callback_t *)memcached_get_sasl_callbacks(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sasl_callback_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

.memcached_get_user_data(*args) ⇒ Object



8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8670

SWIGINTERN VALUE
_wrap_memcached_get_user_data(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_user_data", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (void *)memcached_get_user_data(arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

.memcached_increment(*args) ⇒ Object



7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7056

SWIGINTERN VALUE
_wrap_memcached_increment(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint32_t arg4 ;
  uint64_t *arg5 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  uint64_t temp5 ;
  int res5 = SWIG_TMPOBJ ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  arg5 = &temp5;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_increment", 4, argv[2] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (memcached_return)memcached_increment(arg1,(char const *)arg2,arg3,arg4,arg5);
  vresult = SWIG_From_int((int)(result));
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint64_t, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_increment_with_initial(*args) ⇒ Object



7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7156

SWIGINTERN VALUE
_wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  time_t arg6 ;
  uint64_t *arg7 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  uint64_t temp7 ;
  int res7 = SWIG_TMPOBJ ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  arg7 = &temp7;
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment_with_initial", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_uint64_t,  0 );
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial", 4, argv[2] )); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial", 4, argv[2]));
    } else {
      arg4 = *((uint64_t *)(argp4));
    }
  }
  {
    res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_uint64_t,  0 );
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial", 5, argv[3] )); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial", 5, argv[3]));
    } else {
      arg5 = *((uint64_t *)(argp5));
    }
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[4], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_increment_with_initial", 6, argv[4] ));
  } 
  arg6 = (time_t)(val6);
  result = (memcached_return)memcached_increment_with_initial(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  if (SWIG_IsTmpObj(res7)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg7)));
  } else {
    int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint64_t, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_lib_version(*args) ⇒ Object



6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6923

SWIGINTERN VALUE
_wrap_memcached_lib_version(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)memcached_lib_version();
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.memcached_mget(*args) ⇒ Object



8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8884

SWIGINTERN VALUE
_wrap_memcached_mget(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char **arg2 = (char **) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  size_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    unsigned int i;
    VALUE str;
    Check_Type(argv[1], T_ARRAY);
    arg4 = (unsigned int) RARRAY_LEN(argv[1]);
    arg3 = (size_t *) malloc((arg4+1)*sizeof(size_t));
    arg2 = (char **) malloc((arg4+1)*sizeof(char *));
    for(i = 0; i < arg4; i ++) {
      str = rb_string_value(&RARRAY_PTR(argv[1])[i]);
      arg2[i] = RSTRING_PTR(str);
      arg3[i] = RSTRING_LEN(str);
    }
  }
  result = (memcached_return)memcached_mget(arg1,(char const **)arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    free(arg2);
    free(arg3);
  }
  return vresult;
fail:
  {
    free(arg2);
    free(arg3);
  }
  return Qnil;
}

.memcached_mget_by_key(*args) ⇒ Object



9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9060

SWIGINTERN VALUE
_wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char **arg4 = (char **) 0 ;
  size_t *arg5 = (size_t *) 0 ;
  size_t arg6 ;
  uint32_t arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_mget_by_key", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_mget_by_key", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  {
    unsigned int i;
    VALUE str;
    Check_Type(argv[3], T_ARRAY);
    arg6 = (unsigned int) RARRAY_LEN(argv[3]);
    arg5 = (size_t *) malloc((arg6+1)*sizeof(size_t));
    arg4 = (char **) malloc((arg6+1)*sizeof(char *));
    for(i = 0; i < arg6; i ++) {
      str = rb_string_value(&RARRAY_PTR(argv[3])[i]);
      arg4[i] = RSTRING_PTR(str);
      arg5[i] = RSTRING_LEN(str);
    }
  }
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_mget_by_key", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  result = (memcached_return)memcached_mget_by_key(arg1,(char const *)arg2,arg3,(char const **)arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  {
    free(arg4);
    free(arg5);
  }
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  {
    free(arg4);
    free(arg5);
  }
  return Qnil;
}

.memcached_mget_len(*args) ⇒ Object



8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8932

SWIGINTERN VALUE
_wrap_memcached_mget_len(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char **arg2 = (char **) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  size_t arg4 ;
  uint32_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_len", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    unsigned int i;
    VALUE str;
    Check_Type(argv[1], T_ARRAY);
    arg4 = (unsigned int) RARRAY_LEN(argv[1]);
    arg3 = (size_t *) malloc((arg4+1)*sizeof(size_t));
    arg2 = (char **) malloc((arg4+1)*sizeof(char *));
    for(i = 0; i < arg4; i ++) {
      str = rb_string_value(&RARRAY_PTR(argv[1])[i]);
      arg2[i] = RSTRING_PTR(str);
      arg3[i] = RSTRING_LEN(str);
    }
  }
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[2], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint32_t","memcached_mget_len", 5, argv[2] ));
  } 
  arg5 = (uint32_t)(val5);
  result = (memcached_return)memcached_mget_len(arg1,(char const **)arg2,arg3,arg4,arg5);
  vresult = SWIG_From_int((int)(result));
  {
    free(arg2);
    free(arg3);
  }
  return vresult;
fail:
  {
    free(arg2);
    free(arg3);
  }
  return Qnil;
}

.memcached_prepend(*args) ⇒ Object



9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9539

SWIGINTERN VALUE
_wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  uint32_t arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[3], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_prepend", 6, argv[3] ));
  } 
  arg6 = (time_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  result = (memcached_return)memcached_prepend(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_prepend_by_key(*args) ⇒ Object



9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9833

SWIGINTERN VALUE
_wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  char *arg6 = (char *) 0 ;
  size_t arg7 ;
  time_t arg8 ;
  uint32_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg6 = RSTRING_PTR(str);
    arg7 = RSTRING_LEN(str);
  }
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[3], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "time_t","memcached_prepend_by_key", 8, argv[3] ));
  } 
  arg8 = (time_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend_by_key", 9, argv[4] ));
  } 
  arg9 = (uint32_t)(val9);
  result = (memcached_return)memcached_prepend_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_quit(*args) ⇒ Object



7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7504

SWIGINTERN VALUE
_wrap_memcached_quit(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_quit", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  memcached_quit(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_replace(*args) ⇒ Object



9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9427

SWIGINTERN VALUE
_wrap_memcached_replace(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  uint32_t arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[3], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_replace", 6, argv[3] ));
  } 
  arg6 = (time_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_replace", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  result = (memcached_return)memcached_replace(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_replace_by_key(*args) ⇒ Object



9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9775

SWIGINTERN VALUE
_wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  char *arg6 = (char *) 0 ;
  size_t arg7 ;
  time_t arg8 ;
  uint32_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg6 = RSTRING_PTR(str);
    arg7 = RSTRING_LEN(str);
  }
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[3], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "time_t","memcached_replace_by_key", 8, argv[3] ));
  } 
  arg8 = (time_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_replace_by_key", 9, argv[4] ));
  } 
  arg9 = (uint32_t)(val9);
  result = (memcached_return)memcached_replace_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_result_create(*args) ⇒ Object



10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 10532

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

.memcached_result_free(*args) ⇒ Object



10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 10490

SWIGINTERN VALUE
_wrap_memcached_result_free(int argc, VALUE *argv, VALUE self) {
  memcached_result_st *arg1 = (memcached_result_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_free", 1, argv[0] )); 
  }
  arg1 = (memcached_result_st *)(argp1);
  memcached_result_free(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_result_length(*args) ⇒ Object



10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 10588

SWIGINTERN VALUE
_wrap_memcached_result_length(int argc, VALUE *argv, VALUE self) {
  memcached_result_st *arg1 = (memcached_result_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_length", 1, argv[0] )); 
  }
  arg1 = (memcached_result_st *)(argp1);
  result = memcached_result_length(arg1);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_result_reset(*args) ⇒ Object



10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 10511

SWIGINTERN VALUE
_wrap_memcached_result_reset(int argc, VALUE *argv, VALUE self) {
  memcached_result_st *arg1 = (memcached_result_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_reset", 1, argv[0] )); 
  }
  arg1 = (memcached_result_st *)(argp1);
  memcached_result_reset(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_result_set_value(*args) ⇒ Object



10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 10612

SWIGINTERN VALUE
_wrap_memcached_result_set_value(int argc, VALUE *argv, VALUE self) {
  memcached_result_st *arg1 = (memcached_result_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_set_value", 1, argv[0] )); 
  }
  arg1 = (memcached_result_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_result_set_value", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_result_set_value", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  result = (memcached_return)memcached_result_set_value(arg1,(char const *)arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_result_value(*args) ⇒ Object



10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 10564

SWIGINTERN VALUE
_wrap_memcached_result_value(int argc, VALUE *argv, VALUE self) {
  memcached_result_st *arg1 = (memcached_result_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_value", 1, argv[0] )); 
  }
  arg1 = (memcached_result_st *)(argp1);
  result = (char *)memcached_result_value(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.memcached_sasl_authenticate_connection(*args) ⇒ Object



12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12595

SWIGINTERN VALUE
_wrap_memcached_sasl_authenticate_connection(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_sasl_authenticate_connection", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  result = (memcached_return)memcached_sasl_authenticate_connection(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_select_server_at(*args) ⇒ Object



12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12960

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

.memcached_select_stat_at(*args) ⇒ Object



12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12992

SWIGINTERN VALUE
_wrap_memcached_select_stat_at(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  memcached_stat_st *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_stat_at", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_select_stat_at", 2, argv[1] )); 
  }
  arg2 = (memcached_stat_st *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","memcached_select_stat_at", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (memcached_stat_st *)memcached_select_stat_at(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

.memcached_server_add(*args) ⇒ Object



7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7801

SWIGINTERN VALUE
_wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (memcached_return)memcached_server_add(arg1,(char const *)arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_add_udp(*args) ⇒ Object



7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7723

SWIGINTERN VALUE
_wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_udp", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (memcached_return)memcached_server_add_udp(arg1,(char const *)arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_add_udp_with_weight(*args) ⇒ Object



7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7844

SWIGINTERN VALUE
_wrap_memcached_server_add_udp_with_weight(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  uint32_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp_with_weight", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_udp_with_weight", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp_with_weight", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_udp_with_weight", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (memcached_return)memcached_server_add_udp_with_weight(arg1,(char const *)arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_add_unix_socket(*args) ⇒ Object



7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7766

SWIGINTERN VALUE
_wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_unix_socket", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (memcached_return)memcached_server_add_unix_socket(arg1,(char const *)arg2);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_add_unix_socket_with_weight(*args) ⇒ Object



7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7895

SWIGINTERN VALUE
_wrap_memcached_server_add_unix_socket_with_weight(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  uint32_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket_with_weight", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_unix_socket_with_weight", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_unix_socket_with_weight", 3, argv[2] ));
  } 
  arg3 = (uint32_t)(val3);
  result = (memcached_return)memcached_server_add_unix_socket_with_weight(arg1,(char const *)arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_add_with_weight(*args) ⇒ Object



7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7938

SWIGINTERN VALUE
_wrap_memcached_server_add_with_weight(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  uint32_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_with_weight", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_with_weight", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_with_weight", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_with_weight", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (memcached_return)memcached_server_add_with_weight(arg1,(char const *)arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_by_key(*args) ⇒ Object



12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12167

SWIGINTERN VALUE
_wrap_memcached_server_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  memcached_return *arg4 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return temp4 ;
  int res4 = SWIG_TMPOBJ ;
  memcached_server_st *result = 0 ;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  result = (memcached_server_st *)memcached_server_by_key(arg1,(char const *)arg2,arg3,arg4);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_server_clone(*args) ⇒ Object



12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12374

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

.memcached_server_create(*args) ⇒ Object



12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12254

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

.memcached_server_create_with(*args) ⇒ Object



12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12286

SWIGINTERN VALUE
_wrap_memcached_server_create_with(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_server_st *arg2 = (memcached_server_st *) 0 ;
  char *arg3 = (char *) 0 ;
  unsigned int arg4 ;
  uint32_t arg5 ;
  memcached_connection arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  memcached_server_st *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_create_with", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_create_with", 2, argv[1] )); 
  }
  arg2 = (memcached_server_st *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_server_create_with", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_server_create_with", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint32_t","memcached_server_create_with", 5, argv[4] ));
  } 
  arg5 = (uint32_t)(val5);
  ecode6 = SWIG_AsVal_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "memcached_connection","memcached_server_create_with", 6, argv[5] ));
  } 
  arg6 = (memcached_connection)(val6);
  result = (memcached_server_st *)memcached_server_create_with(arg1,arg2,(char const *)arg3,arg4,arg5,arg6);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.memcached_server_cursor(*args) ⇒ Object



12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12121

SWIGINTERN VALUE
_wrap_memcached_server_cursor(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_server_function *arg2 = (memcached_server_function *) 0 ;
  void *arg3 = (void *) 0 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_cursor", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_function, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_function *","memcached_server_cursor", 2, argv[1] )); 
  }
  arg2 = (memcached_server_function *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_server_cursor", 3, argv[2] )); 
  }
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_server_cursor", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (memcached_return)memcached_server_cursor(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_server_error(*args) ⇒ Object



12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12209

SWIGINTERN VALUE
_wrap_memcached_server_error(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_error", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  result = (char *)memcached_server_error(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.memcached_server_error_reset(*args) ⇒ Object



12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12233

SWIGINTERN VALUE
_wrap_memcached_server_error_reset(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_error_reset", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  memcached_server_error_reset(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_server_free(*args) ⇒ Object



12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12353

SWIGINTERN VALUE
_wrap_memcached_server_free(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_free", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  memcached_server_free(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_server_list_append(*args) ⇒ Object



8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8042

SWIGINTERN VALUE
_wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  memcached_return *arg4 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  memcached_return temp4 ;
  int res4 = SWIG_TMPOBJ ;
  memcached_server_st *result = 0 ;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_append", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_list_append", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_list_append", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (memcached_server_st *)memcached_server_list_append(arg1,(char const *)arg2,arg3,arg4);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_memcached_return, new_flags));
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_list_append_with_weight(*args) ⇒ Object



8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8095

SWIGINTERN VALUE
_wrap_memcached_server_list_append_with_weight(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  uint32_t arg4 ;
  memcached_return *arg5 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  memcached_return temp5 ;
  int res5 = SWIG_TMPOBJ ;
  memcached_server_st *result = 0 ;
  VALUE vresult = Qnil;
  
  arg5 = &temp5;
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_append_with_weight", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_list_append_with_weight", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_list_append_with_weight", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_list_append_with_weight", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (memcached_server_st *)memcached_server_list_append_with_weight(arg1,(char const *)arg2,arg3,arg4,arg5);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (SWIG_IsTmpObj(res5)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg5)));
  } else {
    int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_memcached_return, new_flags));
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_server_list_count(*args) ⇒ Object



8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8156

SWIGINTERN VALUE
_wrap_memcached_server_list_count(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_count", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  result = (unsigned int)memcached_server_list_count(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_server_list_free(*args) ⇒ Object



7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7989

SWIGINTERN VALUE
_wrap_memcached_server_list_free(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  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(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_free", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  memcached_server_list_free(arg1);
  return Qnil;
fail:
  return Qnil;
}

.memcached_server_push(*args) ⇒ Object



8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8010

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

.memcached_server_remove(*args) ⇒ Object



12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12448

SWIGINTERN VALUE
_wrap_memcached_server_remove(int argc, VALUE *argv, VALUE self) {
  memcached_server_st *arg1 = (memcached_server_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_remove", 1, argv[0] )); 
  }
  arg1 = (memcached_server_st *)(argp1);
  result = (memcached_return)memcached_server_remove(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_servers_parse(*args) ⇒ Object



8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8180

SWIGINTERN VALUE
_wrap_memcached_servers_parse(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  memcached_server_st *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","memcached_servers_parse", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (memcached_server_st *)memcached_servers_parse((char const *)arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 |  0 );
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.memcached_set(*args) ⇒ Object



9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9315

SWIGINTERN VALUE
_wrap_memcached_set(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  uint32_t arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[3], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_set", 6, argv[3] ));
  } 
  arg6 = (time_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_set", 7, argv[4] ));
  } 
  arg7 = (uint32_t)(val7);
  result = (memcached_return)memcached_set(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_set_by_key(*args) ⇒ Object



9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 9659

SWIGINTERN VALUE
_wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  char *arg6 = (char *) 0 ;
  size_t arg7 ;
  time_t arg8 ;
  uint32_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg4 = arg2 = RSTRING_PTR(str);
    arg5 = arg3 = RSTRING_LEN(str);
  }
  {
    VALUE str;
    str = rb_string_value(&argv[2]);
    arg6 = RSTRING_PTR(str);
    arg7 = RSTRING_LEN(str);
  }
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[3], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "time_t","memcached_set_by_key", 8, argv[3] ));
  } 
  arg8 = (time_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_set_by_key", 9, argv[4] ));
  } 
  arg9 = (uint32_t)(val9);
  result = (memcached_return)memcached_set_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_set_memory_allocators(*args) ⇒ Object



8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8537

SWIGINTERN VALUE
_wrap_memcached_set_memory_allocators(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_malloc_function arg2 ;
  memcached_free_function arg3 ;
  memcached_realloc_function arg4 ;
  memcached_calloc_function arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  void *argp4 ;
  int res4 = 0 ;
  void *argp5 ;
  int res5 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_memory_allocators", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_memcached_malloc_function,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_malloc_function","memcached_set_memory_allocators", 2, argv[1] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_malloc_function","memcached_set_memory_allocators", 2, argv[1]));
    } else {
      arg2 = *((memcached_malloc_function *)(argp2));
    }
  }
  {
    res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_memcached_free_function,  0 );
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_free_function","memcached_set_memory_allocators", 3, argv[2] )); 
    }  
    if (!argp3) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_free_function","memcached_set_memory_allocators", 3, argv[2]));
    } else {
      arg3 = *((memcached_free_function *)(argp3));
    }
  }
  {
    res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_memcached_realloc_function,  0 );
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "memcached_realloc_function","memcached_set_memory_allocators", 4, argv[3] )); 
    }  
    if (!argp4) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_realloc_function","memcached_set_memory_allocators", 4, argv[3]));
    } else {
      arg4 = *((memcached_realloc_function *)(argp4));
    }
  }
  {
    res5 = SWIG_ConvertPtr(argv[4], &argp5, SWIGTYPE_p_memcached_calloc_function,  0 );
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "memcached_calloc_function","memcached_set_memory_allocators", 5, argv[4] )); 
    }  
    if (!argp5) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_calloc_function","memcached_set_memory_allocators", 5, argv[4]));
    } else {
      arg5 = *((memcached_calloc_function *)(argp5));
    }
  }
  result = (memcached_return)memcached_set_memory_allocators(arg1,arg2,arg3,arg4,arg5);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_set_sasl_auth_data(*args) ⇒ Object



12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12501

SWIGINTERN VALUE
_wrap_memcached_set_sasl_auth_data(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_sasl_auth_data", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_set_sasl_auth_data", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_set_sasl_auth_data", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  result = (memcached_return)memcached_set_sasl_auth_data(arg1,(char const *)arg2,(char const *)arg3);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.memcached_set_sasl_callbacks(*args) ⇒ Object



12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12472

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

.memcached_set_user_data(*args) ⇒ Object



8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8694

SWIGINTERN VALUE
_wrap_memcached_set_user_data(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_user_data", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    if (RSTRING_LEN(str) == 0) {
      arg2 = NULL;
    } else {
      arg2 = RSTRING_PTR(str);
    }
  }
  result = (void *)memcached_set_user_data(arg1,arg2);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}

.memcached_stat(*args) ⇒ Object



7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7341

SWIGINTERN VALUE
_wrap_memcached_stat(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  memcached_return *arg3 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  memcached_return temp3 ;
  int res3 = SWIG_TMPOBJ ;
  memcached_stat_st *result = 0 ;
  VALUE vresult = Qnil;
  
  arg3 = &temp3;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (memcached_stat_st *)memcached_stat(arg1,arg2,arg3);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  if (SWIG_IsTmpObj(res3)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg3)));
  } else {
    int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_memcached_return, new_flags));
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_stat_free(*args) ⇒ Object



7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7312

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

.memcached_stat_get_keys(*args) ⇒ Object



8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8261

SWIGINTERN VALUE
_wrap_memcached_stat_get_keys(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
  memcached_return *arg3 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  memcached_return temp3 ;
  int res3 = SWIG_TMPOBJ ;
  char **result = 0 ;
  VALUE vresult = Qnil;
  
  arg3 = &temp3;
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_keys", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_keys", 2, argv[1] )); 
  }
  arg2 = (memcached_stat_st *)(argp2);
  result = (char **)memcached_stat_get_keys(arg1,arg2,arg3);
  {
    int i;
    VALUE ary = rb_ary_new();
    vresult = rb_ary_new();
    
    for(i=0; result[i] != NULL; i++) {
      rb_ary_store(ary, i, rb_str_new2(result[i]));
    }
    rb_ary_push(vresult, ary);
    free(result);
  }
  if (SWIG_IsTmpObj(res3)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg3)));
  } else {
    int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_memcached_return, new_flags));
  }
  return vresult;
fail:
  return Qnil;
}

.memcached_stat_get_value(*args) ⇒ Object



8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8207

SWIGINTERN VALUE
_wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
  char *arg3 = (char *) 0 ;
  memcached_return *arg4 = (memcached_return *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  memcached_return temp4 ;
  int res4 = SWIG_TMPOBJ ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  arg4 = &temp4;
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_value", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_value", 2, argv[1] )); 
  }
  arg2 = (memcached_stat_st *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_stat_get_value", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  result = (char *)memcached_stat_get_value(arg1,arg2,(char const *)arg3,arg4);
  vresult = SWIG_FromCharPtr((const char *)result);
  if (SWIG_IsTmpObj(res4)) {
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg4)));
  } else {
    int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN |  0 ) :  0 ;
    vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_memcached_return, new_flags));
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  free((char*)result);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.memcached_stat_servername(*args) ⇒ Object



7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7386

SWIGINTERN VALUE
_wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) {
  memcached_stat_st *arg1 = (memcached_stat_st *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_stat_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_servername", 1, argv[0] )); 
  }
  arg1 = (memcached_stat_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_stat_servername", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (memcached_return)memcached_stat_servername(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.memcached_strerror(*args) ⇒ Object



7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7525

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

.memcached_touch(*args) ⇒ Object



12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12619

SWIGINTERN VALUE
_wrap_memcached_touch(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  time_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_touch", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  {
    VALUE str;
    str = rb_string_value(&argv[1]);
    arg2 = RSTRING_PTR(str);
    arg3 = RSTRING_LEN(str);
  }
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "time_t","memcached_touch", 4, argv[2] ));
  } 
  arg4 = (time_t)(val4);
  result = (memcached_return)memcached_touch(arg1,(char const *)arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.memcached_touch_by_key(*args) ⇒ Object



12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 12659

SWIGINTERN VALUE
_wrap_memcached_touch_by_key(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t arg3 ;
  char *arg4 = (char *) 0 ;
  size_t arg5 ;
  time_t arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  size_t val3 ;
  int ecode3 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_touch_by_key", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_touch_by_key", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_touch_by_key", 3, argv[2] ));
  } 
  arg3 = (size_t)(val3);
  {
    VALUE str;
    str = rb_string_value(&argv[3]);
    arg4 = RSTRING_PTR(str);
    arg5 = RSTRING_LEN(str);
  }
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[4], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "time_t","memcached_touch_by_key", 6, argv[4] ));
  } 
  arg6 = (time_t)(val6);
  result = (memcached_return)memcached_touch_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6);
  vresult = SWIG_From_int((int)(result));
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.memcached_verbosity(*args) ⇒ Object



7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 7472

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

.memcached_version(*args) ⇒ Object



6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 6899

SWIGINTERN VALUE
_wrap_memcached_version(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_version", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (memcached_return)memcached_version(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.run_distribution(*args) ⇒ Object



8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
# File 'ext/rlibmemcached/rlibmemcached_wrap.c', line 8728

SWIGINTERN VALUE
_wrap_run_distribution(int argc, VALUE *argv, VALUE self) {
  memcached_st *arg1 = (memcached_st *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  memcached_return result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","run_distribution", 1, argv[0] )); 
  }
  arg1 = (memcached_st *)(argp1);
  result = (memcached_return)run_distribution(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}