Пример #1
0
        public override byte[] ReadData(string dataName)
        {
            lock (_filelock)
            {
                EntryInfo entryInfo;
                if (_allFiles.TryGetValue(dataName, out entryInfo))
                {
                    byte[] dataBuffer = null;
                    using (System.IO.MemoryStream ms = new System.IO.MemoryStream())
                    {
                        filedb.ReadContent(entryInfo, ms);
                        dataBuffer = ms.ToArray();
                    }
                    return(dataBuffer);
                }

                return(null);
            }
        }