Appends value to the reference table so it can be resolved later by getReadRef. See R source: AddReadRef
The ALTREP class registered for info's class/package symbol pair, undefined if unregistered, null if info is not a ListSxp.
Attempts to unserialize an ALTREP object. Throws error if the base type is not a supported vector type.
Decodes an encoded R writer version into [v, p, s].
Decompresses fileContent per the detectCompression result compressionType. Throws error for unsupported compression types.
Deserializes a decompressed RDA-file. See R source: R_Unserialize
Deserializes a decompressed RDA-file. Answers RObject, or RValues.NilValue if deserialization fails.
First CompressionSignatures entry buf matches, CompressionType.CompUnknownOrNo if none does.
Throws Error if the file is of a recognized but unreadable kind. See R source: comp_type_from_memory
Identifies the SerializationTypes of a decompressed RDA-file buffer.
Converts a linked-list based R object tree into a flat array of top-level objects, omitting payloads when shortcut.
Retrieves the registered object at 1-based reference index. Throws error if out of range. See R source: GetReadRef
. Answers the next character, or -1 on EOF.
Reads (or with skip, discards) a single complex number as two consecutive real values.
Reads (or with skip, discards) len complex numbers, each as two consecutive doubles via inComplex. Throws Error for BINARY format.
See R source: InComplexVec
Reads a serialized integer. See R source: inInteger
Reads (or with skip, discards) len integers. Throws Error for BINARY format or XDR buffer overrun.
See R source: InIntegerVec
Reads (or with skip, discards) len raw bytes into a number array.
Reads (or with skip, discards) the next double. Throws TypeError if the ASCII token is not a valid float.
See R source: InReal
Reads (or with skip, discards) len doubles. Throws Error for BINARY format.
See R source: InRealVec
The 1-based reference index encoded in flags: bits 8-31 encode it directly when non-zero, otherwise it is read as the next stream integer.
Reads (or with skip, discards) a persistent string vector. Answers a CharSxp RObjectData whose
value array holds the deserialized items, empty when skipped. Throws Error if the names flag is non-zero.
See R source: InStringVec
Reads an ASCII word of at most size bytes. Throws error on EOF or overflow.
Whether c is a whitespace byte.
ALTREP class entry for cSym/pSym, undefined if not registered. See R source: LookupClass
Searches the ALTREP class registry for an entry matching cSym/pSym. See R source: LookupClassEntry
Creates or retrieves a cached primitive function object of type SexpType.BuiltInSxp (evaluation non-zero)
or SexpType.SpecialSxp, from index into the primitive function table. Throws Error if out of range.
See R source: mkPRIMSXP
Allocates and initializes a weak reference object. Throws error if key's type is invalid. See R source: NewWeakRef
Decompresses, deserializes, and flattens (per the constructor's shortcut) the file. Answers found RObjectDatas, null if the file is empty.
Parses the file into the single R object it serializes (what an .rds holds), without the flattening
parse applies. Answers the deserialized object, RValues.NilValue for an empty file.
Whether a SexpType.BcodesSxp's version is within the supported range. See R source: R_BCVersionOK
Source-language expression for an unsupported bytecode object: its first constant pool entry, or RValues.NilValue. See R source: bytecodeExpr
Resolves a namespace reference by name via getNamespace() in R. Simpler variant of R_FindNamespace1.
Resolves a serialized namespace reference by executing R at runtime. See R_FindNamespace for the result shape.
Creates a weak reference object. Throws error if fin is not a function or NULL. See R source: R_MakeWeakRef
Registers a bytecode object after encoding.
Deserializes an R bytecode object. See R source: ReadBC
Deserializes a single bytecode object, reps is the repetition table shared across all constants. See R source: ReadBC1
Reads a single language object from bytecode constants, reps is the shared repetition table. See R source: ReadBCLang
Reads len bytes as a character string, decoded per the encoding flags in levels (bit 3 UTF-8, bit 2 Latin-1,
bit 1 raw bytes, bit 6 ASCII); answers '' for a native encoding, which is not yet handled.
See R source: ReadChar
Reads the next flags and dispatches to readItemRecursive; the main recursive entry point for every R object encountered during deserialization.
Iteratively deserializes linked-list based SEXP structures. Answers head node of the reconstructed pairlist chain. Throws Error if the initial type is not a valid pairlist type. See R source: ReadItem_Iterative
Deserializes a single SEXP node, dispatching on its encoded SexpType.
Reads a vector length from the stream. Throws Error for negative lengths or an invalid high-word value. See R source: ReadLENGTH
Reads (or with skip, discards) an AltRepSxp. Only skip === false attempts AltRepUnserializeEx;
discarding it just derives the base type its payload triple encodes. Shared by readItemRecursive and skipItem.
Reads (or with skip, discards) the n constants of a bytecode object into a VecSxp, reps resolves BcRepDef/BcRepRef.
See R source: ReadBCConsts
Reads (or with skip, discards) an EnvSxp environment frame; the locked/class-object bookkeeping only matters when kept.
Shared by readItemRecursive and skipItem.
Reads (or with skip, discards) the payload of a leaf SEXP node, shared by readItemRecursive and skipItem.
skip mirrors their field-by-field differences exactly; see the branches below.
Reads (or with skip, discards) a SymSxp symbol. Shared by readItemRecursive and skipItem.
Recomputes and restores the cached hash-table priority count for environment s. See R source: R_RestoreHashCount
Resolves package environments. Not implemented yet!. See R source: R_FindPackageEnv
A length-1 SexpType.StrSxp character vector wrapping x. See R source: ScalarString
Sets the i-th element of a SexpType.StrSxp character vector to v.name. Throws Error if x is not
a SexpType.StrSxp or i is out of bounds. See R source: SET_STRING_ELT
Sets the i-th element of a generic list or vector. Mirrors R's SET_VECTOR_ELT macro. Throws Error if x
is not a list type or i is out of bounds. See R source: SET_VECTOR_ELT
Sets x's enclosing environment to v. Throws error if v is invalid or would introduce a cycle. See R source: SET_ENCLOS
Advances past a bytecode object. Mirrors readBC.
Advances past a single bytecode. Mirrors readBC1.
Advances past a serialized integer. Mirrors inInteger.
Advances past a serialized SEXP node, filling in only its type. Mirrors readItemRecursive's structure, but skips payload data.
Skips an ASCII word. Mirrors inWord. Throws error on EOF or overflow past RDAParser.WORD_SIZE.
Decodes a raw SEXP flags word into [type, levels, isObject, hasAttribute, hasTag]. See R source: UnpackFlags
Retrieves the i-th element of a generic list or vector. Throws Error if x is not a list type or i is out of bounds.
See R source: VECTOR_ELT
Parser for RDA files.
See