Versionr.LocalDB.DeserializeCachedRecords C# (CSharp) Method

DeserializeCachedRecords() private method

private DeserializeCachedRecords ( byte data, List &results ) : bool
data byte
results List
return bool
        private bool DeserializeCachedRecords(byte[] data, out List<Record> results)
        {
            using (System.IO.MemoryStream ms = new System.IO.MemoryStream(data))
            using (System.IO.BinaryReader br = new System.IO.BinaryReader(ms))
            {
                int count = br.ReadInt32();
                results = new List<Record>(count);
                for (int i = 0; i < count; i++)
                    results.Add(DeserializeRecord(br));
            }
            return true;
        }