public void Deserialize(BinaryReader reader) { int num = reader.ReadInt32(); for (int i = 0; i < num; i++) { NoteStorageBlock item = default(NoteStorageBlock); item.Deserialize(reader); storageBlocks.Add(item); } }
public void Add(int report_entry_id, float value, int note_id) { int num = ReportEntryIdToStorageBlockIdx(report_entry_id); while (num >= storageBlocks.Count) { int capacity = 32; storageBlocks.Add(new NoteStorageBlock(capacity)); } NoteStorageBlock value2 = storageBlocks[num]; value2.Add(report_entry_id, value, note_id); storageBlocks[num] = value2; }