Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- (unknown)
Instance Method Summary collapse
Instance Method Details
#to_cbor(*args) ⇒ Object
78 79 80 81 82 83 84 85 86 |
# File 'ext/cbor/core_ext.c', line 78
static VALUE Integer_to_msgpack(int argc, VALUE* argv, VALUE self)
{
ENSURE_PACKER(argc, argv, packer, pk);
if (FIXNUM_P(self))
msgpack_packer_write_fixnum_value(pk, self);
else
msgpack_packer_write_bignum_value(pk, self);
return packer;
}
|