Example #1
0
        public virtual void GetEntries(uint indexStart, uint numEntries, ref T[] dataOut)
        {
            if (GetNumEntries() == 0)
            {
                Debug.LogError("Unable to read, the array has 0 entries");
                return;
            }

            if (m_Reader == null)
            {
                throw new Exception("No reader present for array entries");
            }
            m_Reader.GetDataArray(m_EntryType, indexStart, numEntries, ref dataOut, m_GetItemFunc);
        }
Example #2
0
 public virtual void GetEntries(uint indexStart, uint numEntries, ref T[] dataOut)
 {
     m_Reader.GetDataArray(m_EntryType, indexStart, numEntries, ref dataOut, m_GetItemFunc);
 }