public void Add(byte[] data) { if (data.Length < 0x10) throw new ArgumentOutOfRangeException("data", "Argument must be 16 bytes or longer."); LDHeapRecord rec = new LDHeapRecord(); rec.data = new byte[16]; Buffer.BlockCopy(data, 0, rec.data, 0, 16); m_obs.Add(rec); }
public void Add(byte[] data) { if (data.Length < 0x10) { throw new ArgumentOutOfRangeException("data", "Argument must be 16 bytes or longer."); } LDHeapRecord rec = new LDHeapRecord(); rec.data = new byte[16]; Buffer.BlockCopy(data, 0, rec.data, 0, 16); m_obs.Add(rec); }