Module: CBOR

Defined in:
lib/cbor/version.rb,
ext/cbor/rbinit.c

Defined Under Namespace

Classes: Buffer, MalformedFormatError, Packer, StackError, TypeError, UnpackError, Unpacker

Constant Summary collapse

VERSION =
"0.5.9.0"
Tagged =
rb_cCBOR_Tagged
Simple =
rb_cCBOR_Simple

Class Method Summary collapse

Class Method Details

.decode(*args) ⇒ Object



381
382
383
384
385
# File 'ext/cbor/unpacker_class.c', line 381

static VALUE MessagePack_unpack_module_method(int argc, VALUE* argv, VALUE mod)
{
    UNUSED(mod);
    return MessagePack_unpack(argc, argv);
}

.dump(*args) ⇒ Object



252
253
254
255
256
# File 'ext/cbor/packer_class.c', line 252

static VALUE MessagePack_dump_module_method(int argc, VALUE* argv, VALUE mod)
{
    UNUSED(mod);
    return MessagePack_pack(argc, argv);
}

.encode(*args) ⇒ Object



258
259
260
261
262
# File 'ext/cbor/packer_class.c', line 258

static VALUE MessagePack_pack_module_method(int argc, VALUE* argv, VALUE mod)
{
    UNUSED(mod);
    return MessagePack_pack(argc, argv);
}

.load(*args) ⇒ Object

MessagePack.unpack(x)



375
376
377
378
379
# File 'ext/cbor/unpacker_class.c', line 375

static VALUE MessagePack_load_module_method(int argc, VALUE* argv, VALUE mod)
{
    UNUSED(mod);
    return MessagePack_unpack(argc, argv);
}

.pack(*args) ⇒ Object

MessagePack.pack(x)



258
259
260
261
262
# File 'ext/cbor/packer_class.c', line 258

static VALUE MessagePack_pack_module_method(int argc, VALUE* argv, VALUE mod)
{
    UNUSED(mod);
    return MessagePack_pack(argc, argv);
}

.unpack(*args) ⇒ Object



381
382
383
384
385
# File 'ext/cbor/unpacker_class.c', line 381

static VALUE MessagePack_unpack_module_method(int argc, VALUE* argv, VALUE mod)
{
    UNUSED(mod);
    return MessagePack_unpack(argc, argv);
}