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

Description Usage Arguments Value Note

View source: R/sqliteToRDS.R

Description

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

Usage

1
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.


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.