Esempio n. 1
0
        public void Store(AnalogIndex record)
        {
            if (fileStream != null)
            {
                byte[] data = record.GetBytes();

                fileStream.Position = record.Index * AnalogIndex.IndexSize;
                fileStream.Write(data, 0, data.Length);
                fileStream.Flush();
            }
        }
Esempio n. 2
0
        public void Store(AnalogIndex record)
        {
            if (fileStream != null)
            {
                byte[] data = record.GetBytes();

                fileStream.Position = record.Index * AnalogIndex.IndexSize;
                fileStream.Write(data, 0, data.Length);
                fileStream.Flush();
            }
        }