API Reference › Natives
CUtlLeanVector`2
StructNamespace: SwiftlyS2.Shared.Natives · Assembly: SwiftlyS2.CS2.dll
public struct CUtlLeanVector<T, I> : IDisposable, IEnumerable<T>, IEnumerable where I : unmanaged, IBinaryInteger<I>, IMinMaxValue<I>View source
Constructors
Please use ManagedCUtlLeanVector%602 instead to construct it. If you really want to use this, you should call Purge after you are done with it.
public CUtlLeanVector(I growSize, I initSize)Parameters
- growSizeI
- initSizeI
Please use ManagedCUtlLeanVector%602 instead to construct it. If you really want to use this, you should call Purge after you are done with it.
public CUtlLeanVector(nint memory, I allocationCount, I numElements)Parameters
- memorynint
- allocationCountI
- numElementsI
Properties
Methods
public void AssumeMemory(nint memory, I allocationCount, I numElements)Parameters
- memorynint
- allocationCountI
- numElementsI
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()public void SetExternalBuffer(nint memory, I allocationCount, I numElements)Parameters
- memorynint
- allocationCountI
- numElementsI