GSF.Snap.Services.Reader.SortedTreeEngineReaderOptions.SortedTreeEngineReaderOptions C# (CSharp) Method

SortedTreeEngineReaderOptions() public method

Creates a new SortedTreeEngineReaderOptions from a stream
public SortedTreeEngineReaderOptions ( BinaryStreamBase stream ) : System
stream GSF.IO.BinaryStreamBase the stream to read from
return System
        public SortedTreeEngineReaderOptions(BinaryStreamBase stream)
        {
            byte version = stream.ReadUInt8();
            switch (version)
            {
                case 0:
                    Timeout = new TimeSpan(stream.ReadInt64());
                    MaxReturnedCount = stream.ReadInt64();
                    MaxScanCount = stream.ReadInt64();
                    MaxSeekCount = stream.ReadInt64();
                    break;
                default:
                    throw new VersionNotFoundException("Unknown Version");
            }
        }

Same methods

SortedTreeEngineReaderOptions::SortedTreeEngineReaderOptions ( ) : System
SortedTreeEngineReaderOptions::SortedTreeEngineReaderOptions ( System.TimeSpan timeout = default(TimeSpan), long maxReturnedCount, long maxScanCount, long maxSeekCount ) : System
SortedTreeEngineReaderOptions