Insert a String into an existing character array. If the String is longer than len, then only the the initial len characters will be inserted.


Namespace: nom.tam.util
Assembly: CSharpFITS_v1.1 (in CSharpFITS_v1.1.dll)

Syntax

Visual Basic (Declaration)
Public Function format( _ 
   ByVal val As String,  _ 
   ByVal array As Byte(),  _ 
   ByVal off As Integer,  _ 
   ByVal len As Integer _ 
) As Integer
C#
public int format(
   string val,
   byte[] array,
   int off,
   int len
)
C++
public:
 int format(
   String val,
   array<char>^ array,
   int off,
   int len
) sealed 
J#
public int format(
   string val,
   byte[] array,
   int off,
   int len
)
JScript
public  function format(
   val : String,
   array : Byte[],
   off : int,
   len : int
) : int

Parameters

val
The string to be inserted. A null string will insert len spaces.
array
The buffer in which to insert the string.
off
The starting offset to insert the string.
len
The maximum number of characters to insert.

Return Value

Offset of next available character in buffer.

See Also