Example #1
0
        private void Read(byte[] tableStream, FileInformationBlock fib)
        {
            int referencesStart = fib.GetNotesDescriptorsOffset(noteType);
            int referencesLength = fib.GetNotesDescriptorsSize(noteType);

            if (referencesStart != 0 && referencesLength != 0)
                this.descriptors = new PlexOfCps(tableStream, referencesStart,
                        referencesLength, FootnoteReferenceDescriptor.GetSize());

            int textPositionsStart = fib.GetNotesTextPositionsOffset(noteType);
            int textPositionsLength = fib.GetNotesTextPositionsSize(noteType);

            if (textPositionsStart != 0 && textPositionsLength != 0)
                this.textPositions = new PlexOfCps(tableStream,
                        textPositionsStart, textPositionsLength, 0);
        }
Example #2
0
        private void Read(byte[] tableStream, FileInformationBlock fib)
        {
            int referencesStart  = fib.GetNotesDescriptorsOffset(noteType);
            int referencesLength = fib.GetNotesDescriptorsSize(noteType);

            if (referencesStart != 0 && referencesLength != 0)
            {
                this.descriptors = new PlexOfCps(tableStream, referencesStart,
                                                 referencesLength, FootnoteReferenceDescriptor.GetSize());
            }

            int textPositionsStart  = fib.GetNotesTextPositionsOffset(noteType);
            int textPositionsLength = fib.GetNotesTextPositionsSize(noteType);

            if (textPositionsStart != 0 && textPositionsLength != 0)
            {
                this.textPositions = new PlexOfCps(tableStream,
                                                   textPositionsStart, textPositionsLength, 0);
            }
        }