@@ -248,7 +248,7 @@ class Redis {
248
248
std::string set (std::string key, SEXP s) {
249
249
250
250
// if raw, use as is else serialize to raw
251
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
251
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
252
252
253
253
// uses binary protocol, see hiredis doc at github
254
254
redisReply *reply =
@@ -271,7 +271,7 @@ class Redis {
271
271
int nc = reply->len ;
272
272
Rcpp::RawVector res (nc);
273
273
memcpy (res.begin (), reply->str , nc);
274
- obj = unserializeFromRaw (res);
274
+ obj = R:: unserializeFromRaw (res);
275
275
}
276
276
freeReplyObject (reply);
277
277
return (obj);
@@ -281,7 +281,7 @@ class Redis {
281
281
int hset (std::string key, std::string field, SEXP s) {
282
282
283
283
// if raw, use as is else serialize to raw
284
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
284
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
285
285
286
286
// uses binary protocol, see hiredis doc at github
287
287
redisReply *reply =
@@ -305,7 +305,7 @@ class Redis {
305
305
Rcpp::RawVector res (nc);
306
306
memcpy (res.begin (), reply->str , nc);
307
307
freeReplyObject (reply);
308
- SEXP obj = unserializeFromRaw (res);
308
+ SEXP obj = R:: unserializeFromRaw (res);
309
309
return (obj);
310
310
}
311
311
@@ -379,7 +379,7 @@ class Redis {
379
379
int vlen = reply->element [valueidx]->len ;
380
380
Rcpp::RawVector res (vlen);
381
381
memcpy (res.begin (), reply->element [valueidx]->str , vlen);
382
- SEXP obj = unserializeFromRaw (res);
382
+ SEXP obj = R:: unserializeFromRaw (res);
383
383
vec[i] = obj;
384
384
}
385
385
vec.names () = keys;
@@ -391,7 +391,7 @@ class Redis {
391
391
SEXP sadd (std::string key, SEXP s) {
392
392
393
393
// if raw, use as is else serialize to raw
394
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
394
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
395
395
const char * cmdv[3 ] = {" SADD" , key.c_str (), reinterpret_cast <char *>(x.begin ())};
396
396
size_t cmdlen[3 ] = {4 , key.length (), static_cast <size_t >(x.size ())};
397
397
@@ -407,7 +407,7 @@ class Redis {
407
407
SEXP srem (std::string key, SEXP s) {
408
408
409
409
// if raw, use as is else serialize to raw
410
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
410
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
411
411
const char * cmdv[3 ] = {" SREM" , key.c_str (), reinterpret_cast <char *>(x.begin ())};
412
412
size_t cmdlen[3 ] = {4 , key.length (), static_cast <size_t >(x.size ())};
413
413
@@ -431,7 +431,7 @@ class Redis {
431
431
int nc = reply->element [i]->len ;
432
432
Rcpp::RawVector res (nc);
433
433
memcpy (res.begin (), reply->element [i]->str , nc);
434
- SEXP obj = unserializeFromRaw (res);
434
+ SEXP obj = R:: unserializeFromRaw (res);
435
435
x[i] = obj;
436
436
}
437
437
@@ -479,7 +479,7 @@ class Redis {
479
479
int nc = reply->element [i]->len ;
480
480
Rcpp::RawVector res (nc);
481
481
memcpy (res.begin (), reply->element [i]->str , nc);
482
- SEXP obj = unserializeFromRaw (res);
482
+ SEXP obj = R:: unserializeFromRaw (res);
483
483
x[i] = obj;
484
484
}
485
485
@@ -513,7 +513,7 @@ class Redis {
513
513
int nc = reply->len ;
514
514
Rcpp::RawVector res (nc);
515
515
memcpy (res.begin (), reply->str , nc);
516
- obj = unserializeFromRaw (res);
516
+ obj = R:: unserializeFromRaw (res);
517
517
}
518
518
519
519
return (obj);
@@ -543,7 +543,7 @@ class Redis {
543
543
SEXP lpush (std::string key, SEXP s) {
544
544
545
545
// if raw, use as is else serialize to raw
546
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
546
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
547
547
548
548
// uses binary protocol, see hiredis doc at github
549
549
redisReply *reply =
@@ -561,7 +561,7 @@ class Redis {
561
561
SEXP rpush (std::string key, SEXP s) {
562
562
563
563
// if raw, use as is else serialize to raw
564
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
564
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
565
565
566
566
// uses binary protocol, see hiredis doc at github
567
567
redisReply *reply =
@@ -939,17 +939,17 @@ class Redis {
939
939
vec[i] = extract_reply (reply->element [i]);
940
940
} else
941
941
{
942
- if (type == " string" ) {
942
+ if (type == " string" ) {
943
943
vec[i] = Rcpp::wrap (std::string (reply->element [i]->str ));
944
944
goto end;
945
945
}
946
946
int vlen = reply->element [i]->len ;
947
947
Rcpp::RawVector res (vlen);
948
948
memcpy (res.begin (), reply->element [i]->str , vlen);
949
- if (type == " raw" ) {
949
+ if (type == " raw" ) {
950
950
vec[i] = res;
951
951
} else {
952
- vec[i] = unserializeFromRaw (res);
952
+ vec[i] = R:: unserializeFromRaw (res);
953
953
}
954
954
}
955
955
}
@@ -995,7 +995,7 @@ class Redis {
995
995
SEXP publish (std::string channel, SEXP s) {
996
996
997
997
// if raw, use as is else serialize to raw
998
- Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : serializeToRaw (s);
998
+ Rcpp::RawVector x = (TYPEOF (s) == RAWSXP) ? s : R:: serializeToRaw (s);
999
999
1000
1000
// uses binary protocol, see hiredis doc at github
1001
1001
redisReply *reply =
0 commit comments