[This is preliminary documentation and is subject to change.]

Fills a section of the given byte array with a specified byte value, as efficiently as possible.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)

Syntax

   
 C# 
public static void MemSet(
	this byte[] array,
	byte value,
	int startIndex,
	int length
)

Parameters

array
array<Byte>[]()[][]
Array to work with.
value
Byte
Value to assign to each byte of the array.
startIndex
Int32
Index of the first byte that should be set.
length
Int32
Number of bytes of the array to set.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If array is null.
System..::..ArgumentOutOfRangeException If length is negative, if startIndex is negative, or if (length+startIndex) is greater than array length.

See Also