MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ToArray

Method ToArray

Source/Engine/Engine/NativeInterop.Managed.cs:195–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 public Span<T> ToSpan<T>() where T : struct => new Span<T>(_unmanagedData.ToPointer(), _length);
194
195 public T[] ToArray<T>() where T : struct => new Span<T>(_unmanagedData.ToPointer(), _length).ToArray();
196
197 public Array ToArray() => ArrayCast.ToArray(new Span<byte>(_unmanagedData.ToPointer(), _length * _elementSize), _elementType);
198

Callers 6

TryCreateDelegateMethod · 0.45
GetAssemblyTypesMethod · 0.45
ThunkContextMethod · 0.45
ToArrayMethod · 0.45
ToManagedMethod · 0.45

Calls 1

ToPointerMethod · 0.80

Tested by

no test coverage detected