nuget server logo nuget api documents
↑

API Docs / RData / Reader

Reader

Full name SMRUCC.Rsharp.RDataSet.Reader Assembly RData Members 14

01 Syntax

SMRUCC.Rsharp.RDataSet.Reader

02 Methods

NameOverloadsSummary
parse_bool 1 Parse a boolean.
parse_int 1 Parse an integer.
parse_double 1 Parse a double.
parse_complex 1 Parse a complex number.
parse_string 1 Parse a string.
parse_byte 1 Read a single raw byte (used for R 4.x compact integer / 1-byte lengths).
parse_int24 1 Read the 24-bit (3-byte) object info integer.
parse_all 1 Parse all the file.
parse_versions 1 Parse the versions header.
parse_extra_info 1 Parse the versions header.
expand_altrep_to_object 1 Expand alternative representation to normal object.
parse_R_object 1 Parse a R object.
ParseRDataBinary 1 Select the appropiate parser and parse all the info.
ParseData 1 Parse the data of a R file, received as a sequence of bytes.

03 Members

method parse_bool #
parse_bool

Parse a boolean.

method parse_int #
parse_int

Parse an integer.

method parse_double #
parse_double

Parse a double.

method parse_complex #
parse_complex

Parse a complex number.

method parse_string #
parse_string(Int32)

Parse a string.

Parameters
NameTypeDescription
lengthInt32

-

method parse_byte #
parse_byte

Read a single raw byte (used for R 4.x compact integer / 1-byte lengths).

method parse_int24 #
parse_int24

Read the 24-bit (3-byte) object info integer. R's serialization format stores the per-object info header as a 3-byte big-endian integer, not a full 4-byte XDR word. Reading it as a 4-byte int shifts every following object (length + payload) by one byte and corrupts the parse.

method parse_all #
parse_all

Parse all the file.

method parse_versions #
parse_versions

Parse the versions header.

method parse_extra_info #
parse_extra_info(RVersions)

Parse the versions header.

Parameters
NameTypeDescription
versionsRVersions

-

method expand_altrep_to_object #
expand_altrep_to_object(RObject, RObject)

Expand alternative representation to normal object.

Parameters
NameTypeDescription
infoRObject

-

stateRObject

-

method parse_R_object #
parse_R_object(List(Of RObject), Boolean)

Parse a R object.

Parameters
NameTypeDescription
reference_listList(Of RObject)

-

method ParseRDataBinary #
ParseRDataBinary(BinaryDataReader, Boolean, Boolean)

Select the appropiate parser and parse all the info.

Parameters
NameTypeDescription
binBinaryDataReader

-

method ParseData #
ParseData(Stream, Boolean, Boolean)

Parse the data of a R file, received as a sequence of bytes.

Parameters
NameTypeDescription
binStream

Data extracted of a R file.

Returns

Data contained in the file (versions and object).