rnum (TokyoTyrant::RDB)

    # File tokyotyrant.rb, line 743
        def rnum()
          if !@sock
            @ecode = EINVALID
            return 0
          end
          sbuf = [0xC8, 0x80].pack("CC")
          if !_send(sbuf)
            @ecode = ESEND
            return 0
          end
          code = _recvcode
          if code == -1
            @ecode = ERECV
            return 0
          end
          if code != 0
            @ecode = EMISC
            return 0
          end
          rv = _recvint64
          if rv < 0
            @ecode = ERECV
            return 0
          end
          return rv
        end