class Cproton::Pn_atom_t_u

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_pn_atom_t_u(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (pn_atom_t_u *)calloc(1, sizeof(pn_atom_t_u));
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Public Instance Methods

as_bool(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_bool_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bool", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (bool) ((arg1)->as_bool);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}
as_bool=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_bool_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bool", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","as_bool", 2, argv[0] ));
  } 
  arg2 = (bool)(val2);
  if (arg1) (arg1)->as_bool = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_byte(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_byte_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int8_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_byte", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (int8_t) ((arg1)->as_byte);
  vresult = SWIG_From_signed_SS_char((signed char)(result));
  return vresult;
fail:
  return Qnil;
}
as_byte=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_byte_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  int8_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  signed char val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_byte", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_signed_SS_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int8_t","as_byte", 2, argv[0] ));
  } 
  arg2 = (int8_t)(val2);
  if (arg1) (arg1)->as_byte = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_bytes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_bytes_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_bytes_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bytes", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_bytes_t *)& ((arg1)->as_bytes);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_bytes_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
as_bytes=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_bytes_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_bytes_t *arg2 = (pn_bytes_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_bytes", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_bytes_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_bytes_t *","as_bytes", 2, argv[0] )); 
  }
  arg2 = (pn_bytes_t *)(argp2);
  if (arg1) (arg1)->as_bytes = *arg2;
  return Qnil;
fail:
  return Qnil;
}
as_char(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_char_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_char_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_char_t) ((arg1)->as_char);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
as_char=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_char_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_char_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_char", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_char_t","as_char", 2, argv[0] ));
  } 
  arg2 = (pn_char_t)(val2);
  if (arg1) (arg1)->as_char = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_decimal128(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_decimal128_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_decimal128_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal128", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_decimal128_t *)& ((arg1)->as_decimal128);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_decimal128_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
as_decimal128=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_decimal128_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_decimal128_t *arg2 = (pn_decimal128_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal128", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_decimal128_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_decimal128_t *","as_decimal128", 2, argv[0] )); 
  }
  arg2 = (pn_decimal128_t *)(argp2);
  if (arg1) (arg1)->as_decimal128 = *arg2;
  return Qnil;
fail:
  return Qnil;
}
as_decimal32(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_decimal32_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_decimal32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_decimal32_t) ((arg1)->as_decimal32);
  {
    vresult = ULL2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}
as_decimal32=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_decimal32_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_decimal32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal32", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  {
    arg2 = FIX2UINT(argv[0]);
  }
  if (arg1) (arg1)->as_decimal32 = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_decimal64(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_decimal64_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_decimal64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_decimal64_t) ((arg1)->as_decimal64);
  {
    vresult = ULL2NUM(result);
  }
  return vresult;
fail:
  return Qnil;
}
as_decimal64=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_decimal64_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_decimal64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_decimal64", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  {
    arg2 = NUM2ULONG(argv[0]);
  }
  if (arg1) (arg1)->as_decimal64 = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_double(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_double_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_double", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (double) ((arg1)->as_double);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}
as_double=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_double_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  double arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_double", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","as_double", 2, argv[0] ));
  } 
  arg2 = (double)(val2);
  if (arg1) (arg1)->as_double = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_float(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_float_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_float", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (float) ((arg1)->as_float);
  vresult = SWIG_From_float((float)(result));
  return vresult;
fail:
  return Qnil;
}
as_float=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_float_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_float", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","as_float", 2, argv[0] ));
  } 
  arg2 = (float)(val2);
  if (arg1) (arg1)->as_float = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_int(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_int_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (int32_t) ((arg1)->as_int);
  vresult = SWIG_From_long((long)(result));
  return vresult;
fail:
  return Qnil;
}
as_int=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_int_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  int32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_int", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","as_int", 2, argv[0] ));
  } 
  arg2 = (int32_t)(val2);
  if (arg1) (arg1)->as_int = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_long(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_long_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_long", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (int64_t) ((arg1)->as_long);
  vresult = SWIG_From_long_SS_long((long long)(result));
  return vresult;
fail:
  return Qnil;
}
as_long=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_long_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  int64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  long long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_long", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","as_long", 2, argv[0] ));
  } 
  arg2 = (int64_t)(val2);
  if (arg1) (arg1)->as_long = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_short(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_short_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_short", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (int16_t) ((arg1)->as_short);
  vresult = SWIG_From_short((short)(result));
  return vresult;
fail:
  return Qnil;
}
as_short=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_short_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  int16_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  short val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_short", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int16_t","as_short", 2, argv[0] ));
  } 
  arg2 = (int16_t)(val2);
  if (arg1) (arg1)->as_short = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_timestamp(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_timestamp_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_timestamp_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_timestamp", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_timestamp_t) ((arg1)->as_timestamp);
  vresult = SWIG_From_long_SS_long((long long)(result));
  return vresult;
fail:
  return Qnil;
}
as_timestamp=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_timestamp_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_timestamp_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  long long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_timestamp", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_timestamp_t","as_timestamp", 2, argv[0] ));
  } 
  arg2 = (pn_timestamp_t)(val2);
  if (arg1) (arg1)->as_timestamp = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_ubyte(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_ubyte_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint8_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ubyte", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (uint8_t) ((arg1)->as_ubyte);
  vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
  return vresult;
fail:
  return Qnil;
}
as_ubyte=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_ubyte_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  uint8_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned char val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ubyte", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","as_ubyte", 2, argv[0] ));
  } 
  arg2 = (uint8_t)(val2);
  if (arg1) (arg1)->as_ubyte = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_uint(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_uint_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (uint32_t) ((arg1)->as_uint);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}
as_uint=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_uint_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uint", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","as_uint", 2, argv[0] ));
  } 
  arg2 = (uint32_t)(val2);
  if (arg1) (arg1)->as_uint = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_ulong(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_ulong_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (uint64_t) ((arg1)->as_ulong);
  vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result));
  return vresult;
fail:
  return Qnil;
}
as_ulong=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_ulong_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ulong", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","as_ulong", 2, argv[0] ));
  } 
  arg2 = (uint64_t)(val2);
  if (arg1) (arg1)->as_ulong = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_ushort(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_ushort_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ushort", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (uint16_t) ((arg1)->as_ushort);
  vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
  return vresult;
fail:
  return Qnil;
}
as_ushort=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_ushort_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  uint16_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_ushort", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","as_ushort", 2, argv[0] ));
  } 
  arg2 = (uint16_t)(val2);
  if (arg1) (arg1)->as_ushort = arg2;
  return Qnil;
fail:
  return Qnil;
}
as_uuid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_uuid_get(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pn_uuid_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uuid", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  result = (pn_uuid_t *)& ((arg1)->as_uuid);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_uuid_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
as_uuid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_pn_atom_t_u_as_uuid_set(int argc, VALUE *argv, VALUE self) {
  pn_atom_t_u *arg1 = (pn_atom_t_u *) 0 ;
  pn_uuid_t *arg2 = (pn_uuid_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pn_atom_t_u, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_atom_t_u *","as_uuid", 1, self )); 
  }
  arg1 = (pn_atom_t_u *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_pn_uuid_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_uuid_t *","as_uuid", 2, argv[0] )); 
  }
  arg2 = (pn_uuid_t *)(argp2);
  if (arg1) (arg1)->as_uuid = *arg2;
  return Qnil;
fail:
  return Qnil;
}