コード例 #1
0
ファイル: PhysicalParser.cs プロジェクト: ellen50/gsf
        // Reads a collection element from the PQDIF file.
        private CollectionElement ReadCollection(BinaryReader recordBodyReader)
        {
            int size = recordBodyReader.ReadInt32();
            CollectionElement collection = new CollectionElement();

            for (int i = 0; i < size; i++)
            {
                collection.AddElement(ReadElement(recordBodyReader));
            }

            return(collection);
        }
コード例 #2
0
        // Reads a collection element from the PQDIF file.
        private CollectionElement ReadCollection(BinaryReader recordBodyReader)
        {
            int size = recordBodyReader.ReadInt32();
            CollectionElement collection = new CollectionElement();

            collection.ReadSize = size;

            for (int i = 0; i < size; i++)
            {
                collection.AddElement(ReadElement(recordBodyReader));

                if (recordBodyReader.BaseStream.Position >= recordBodyReader.BaseStream.Length || MaximumExceptionsReached)
                {
                    break;
                }
            }

            return(collection);
        }
コード例 #3
0
ファイル: PhysicalParser.cs プロジェクト: avs009/gsf
        // Reads a collection element from the PQDIF file.
        private CollectionElement ReadCollection(BinaryReader recordBodyReader)
        {
            int size = recordBodyReader.ReadInt32();
            CollectionElement collection = new CollectionElement();

            for (int i = 0; i < size; i++)
                collection.AddElement(ReadElement(recordBodyReader));

            return collection;
        }
コード例 #4
0
ファイル: PhysicalParser.cs プロジェクト: rmc00/gsf
        // Reads a collection element from the PQDIF file.
        private CollectionElement ReadCollection(BinaryReader recordBodyReader)
        {
            int size = recordBodyReader.ReadInt32();
            CollectionElement collection = new CollectionElement();
            collection.ReadSize = size;
            
            for (int i = 0; i < size; i++)
            {
                collection.AddElement(ReadElement(recordBodyReader));

                if (recordBodyReader.BaseStream.Position >= recordBodyReader.BaseStream.Length || MaximumExceptionsReached)
                    break;
            }

            return collection;
        }