nuget server logo nuget api documents
↑

API Docs / REnv / ApiArgumentHelpers

ApiArgumentHelpers

Full name SMRUCC.Rsharp.ApiArgumentHelpers Assembly REnv Members 8

01 Syntax

SMRUCC.Rsharp.ApiArgumentHelpers

02 Methods

NameOverloadsSummary
slot 1 create a slot value reference inside a tuple ApiArgumentHelpers.list()) for construct a new list data
GetNamedValueTuple 1 create a name tagged value object from a given data source value
FileStreamWriter 1 open stream for file write
GetFileStream 1 get a file stream object
list 1
GetNamedValueTuple 1
GetDoubleRange 1

03 Fields

NameOverloadsSummary
ReadOnlyRawByteStream 1 the memory stream object that construct via the given byte array works in readonly mode!

04 Members

method slot #
slot(String)

create a slot value reference inside a tuple ApiArgumentHelpers.list() for construct a new list data

Parameters
NameTypeDescription
nameString

-

method GetNamedValueTuple #
GetNamedValueTuple``1(Object, Environment, String)

create a name tagged value object from a given data source value

Type Parameters
NameDescription
T
Parameters
NameTypeDescription
valueObject

any type of the .NET object

envEnvironment

-

apiString

the traceback tag

method FileStreamWriter #
FileStreamWriter(Environment, Object, Action(Of Stream))

open stream for file write

Parameters
NameTypeDescription
fileEnvironment

-

writeObject

-

method GetFileStream #
GetFileStream(Object, FileAccess, Environment, Boolean, Boolean, Boolean)

get a file stream object

Remarks

base on the value of mode, this function has different behaviour:

  1. FileAccess.Read for a readonly stream
  2. FileAccess.ReadWrite for create a stream could be used for write data
  3. FileAccess.Write will truncate the stream at first!
Parameters
NameTypeDescription
fileObject

the file resource could be one of the:

  1. a valid file path to a filesystem location
  2. a stream object that can be read/write based on the mode context
  3. a raw bytes array for construct a memory stream in this function(readonly)
modeFileAccess

-

envEnvironment

-

suppressBoolean

-

field ReadOnlyRawByteStream #
ReadOnlyRawByteStream

the memory stream object that construct via the given byte array works in readonly mode!

method list #
list(ArgumentReference())
method GetNamedValueTuple #
GetNamedValueTuple(Object, Environment, String)
method GetDoubleRange #
GetDoubleRange(Object, Environment, String, String)