Sets this string to specified memory array with the specified length.

Namespace: ThomsonReuters.RFA.Common
Assembly: RFA8_NET110_x64 (in RFA8_NET110_x64.dll) Version:


public void Set(
	char[] mem,
	uint length
Visual Basic
Public Sub Set ( _
	mem As Char(), _
	length As UInteger _
Visual C++
void Set(
	array<wchar_t>^ mem, 
	unsigned int length
member Set : 
        mem:char[] * 
        length:uint32 -> unit 


Type: array<System..::..Char>[]()[][]
Memory array to copy from.
Type: System..::..UInt32
Desired length of the resulting string. Setting this value to 0 (zero, indicates that a 1-to-1 copy of the entire null terminated input string is desired. RFA will use system's strlen( str ) to determine input string length. Note that an undefined behavior may occur if the input string is not null terminated. Setting this value to something different than 0 (zero) indicates that caller wants to set the length of the resulting string. RFA will create a new string containing that many characters (including if present null term of the input string) and additionally will null terminate it. For example, a call to RFA_String( "ABC", 5, true ) will internally create a string containing the following "ABC\0?\0". Setting of this param allows applications to create a shorter copy the input string as well as to preallocate memory for a longer string if string concatenantion is desired.

See Also