Reads a vector from a stream in R's RDS format.
Namespace:
Extreme.Data.R
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static Vector<T> ReadVector<T>(
Stream stream,
bool strict = true
)
Public Shared Function ReadVector(Of T) (
stream As Stream,
Optional strict As Boolean = true
) As Vector(Of T)
public:
generic<typename T>
static Vector<T>^ ReadVector(
Stream^ stream,
bool strict = true
)
static member ReadVector :
stream : Stream *
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Vector<'T>
Parameters
- stream
- Type: System.IOStream
A stream. - strict (Optional)
- Type: SystemBoolean
Specifies whether the element type
should be matched exactly (, the default), or whether
conversions are allowed ().
Type Parameters
- T
- The element type of the vector.
Return Value
Type:
VectorTThe vector that was read from the stream
pointed to by
stream.
The element type of the stored vector does not have
to match the element type of the returned vector.
However, casting values from this type to
type T must succeed.
Reference