Table of Contents

Class ArrayUtil

Namespace
Vintagestory.API.Util
Assembly
VintagestoryAPI.dll
public static class ArrayUtil
Inheritance
ArrayUtil
Inherited Members

Methods

CreateFilled<T>(int, fillCallback<T>)

public static T[] CreateFilled<T>(int quantity, fillCallback<T> fillCallback)

Parameters

quantity int
fillCallback fillCallback<T>

Returns

T[]

Type Parameters

T

CreateFilled<T>(int, T)

public static T[] CreateFilled<T>(int quantity, T with)

Parameters

quantity int
with T

Returns

T[]

Type Parameters

T

FastCopy<T>(T[], int)

public static T[] FastCopy<T>(this T[] src, int count)

Parameters

src T[]
count int

Returns

T[]

Type Parameters

T

Slice<T>(T[], int, int)

public static T[] Slice<T>(this T[] src, int index, int count)

Parameters

src T[]
index int
count int

Returns

T[]

Type Parameters

T