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

Method Get

Source/Editor/Windows/Profiler/SamplesBuffer.cs:54–59  ·  view source on GitHub ↗

Gets the sample at the specified index or the last sample if index is equal to -1. The index. The sample value

(int index)

Source from the content-addressed store, hash-verified

52 /// <param name="index">The index.</param>
53 /// <returns>The sample value</returns>
54 public T Get(int index)
55 {
56 if (_count == 0 || index >= _data.Length || _data.Length == 0)
57 return default;
58 return index == -1 ? _data[_count - 1] : _data[index];
59 }
60
61 /// <summary>
62 /// Clears this buffer.

Callers 15

RefreshActorTabsMethod · 0.45
ValidateDragActorTypeMethod · 0.45
OnDragDropMethod · 0.45
CreateContextMenuMethod · 0.45
UpdateTableInnerMethod · 0.45
UpdateTableInnerMethod · 0.45
UpdateTableInnerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected