 | CVVSetLen Method |
Set the length of a VV.
Namespace:
GeoEngine.Core.GXNetX
Assembly:
geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic void SetLen(
int size
)
public void SetLen(
int size
)
Public Sub SetLen (
size As Integer
)
Public Sub SetLen (
size As Integer
)
public:
void SetLen(
int size
)
public:
void SetLen(
int size
)
member SetLen :
size : int -> unit
member SetLen :
size : int -> unit
Parameters
- size
- Type: SystemInt32
New length (number of elements)
Remarks
If increasing the VV size, new elements are set to dummies.
It is good practice to set the length ahead of time to the
expected maximum value, as some VV processes rely on the
current maximum length of the VV when you pass it in as an
argument, and unexpected results may occur if the length is
not what you expect it to be because of dynamic allocation at
an earlier time.
See Also