R/lookup.R

Defines functions attachDescriptorPool

# attaches the descriptor pool to the search path at the given
# position

OTABLE <- NULL
NAMESPACE <- environment()

attachDescriptorPool <- function(pos = 2) {
    if (is.null(OTABLE)) {
        ##unlockBinding( "OTABLE", NAMESPACE )
        otable <- .Call(newProtocolBufferLookup, pos)
        #attach(otable, pos=pos, name="RProtoBuf:DescriptorPool")
        assign("OTABLE", otable, envir = NAMESPACE, inherits = FALSE)
        lockBinding("OTABLE", NAMESPACE )
    }

}

Try the RProtoBuf package in your browser

Any scripts or data that you put into this service are public.

RProtoBuf documentation built on May 29, 2024, 3:14 a.m.