Constructs a new array slice.
Namespace:
Extreme.Collections
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public ArraySlice(
int length,
bool initializeToZero = true
)
Public Sub New (
length As Integer,
Optional initializeToZero As Boolean = true
)
public:
ArraySlice(
int length,
bool initializeToZero = true
)
new :
length : int *
?initializeToZero : bool
(* Defaults:
let _initializeToZero = defaultArg initializeToZero true
*)
-> ArraySlice
Parameters
- length
- Type: SystemInt32
The capacity of the slice. - initializeToZero (Optional)
- Type: SystemBoolean
Indicates whether the elements should be
explicitly set to zero.
Use this constructor to create an array slice
that wraps a standard .NET array of the specified length.
The offset is zero and the stride is 1.
Reference