MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / setBuffer

Method setBuffer

inst/include/Rcpp/String.h:656–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654
655 inline bool is_na() const { return data == NA_STRING; }
656 inline void setBuffer() {
657 if (!buffer_ready) {
658 buffer = char_nocheck(data);
659 buffer_ready = true;
660 }
661 }
662 inline void setData() {
663 RCPP_STRING_DEBUG("setData");
664 if (!valid) {

Callers

nothing calls this directly

Calls 1

char_nocheckFunction · 0.70

Tested by

no test coverage detected