Method: BinUtils::Native#slice_sint40_be!

Defined in:
ext/bin_utils/native.c

#slice_sint40_be!(rstr) ⇒ Object



1141
1142
1143
1144
1145
1146
1147
# File 'ext/bin_utils/native.c', line 1141

static VALUE
rb_slice_sint40_be(VALUE self, VALUE rstr)
{
    uint64_t res = get_sint40_be(rstr, INT2FIX(0));
    rb_str_drop_bytes(rstr, 5);
    return I642NUM(res);
}