serializeNoHeader: serialize an object to a raw vector, without the "RDS" file...

View source: R/sqliteToRDS.R

serializeNoHeaderR Documentation

serialize an object to a raw vector, without the "RDS" file header.

Description

serialize an object to a raw vector, without the "RDS" file header.

Usage

serializeNoHeader(x, dropTypeLen = FALSE)

Arguments

x

the R object

dropTypeLen

logical; if TRUE, also drop the initial TYPE and length fields (8 extra bytes)

Value

raw vector to which x has been serialized in binary little-endian (non-XDR) format, but without the leading 'B\n' and three 32-bit integers of header: RDS_serialization_version RDS_R_writer_version RDS_min_R_version So we just drop the first 14 bytes.

Note

this is a convenience function used by sqliteToRds, and is intended for small objects, since the serialization is done in-memory.


MotusWTS/motusServer documentation built on Oct. 13, 2024, 7:31 p.m.