コード例 #1
0
        public override bool Equals(Object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            BookmarkFirstDescriptor other = (BookmarkFirstDescriptor)obj;

            if (field_1_ibkl != other.field_1_ibkl)
            {
                return(false);
            }
            if (field_2_bkf_flags != other.field_2_bkf_flags)
            {
                return(false);
            }
            return(true);
        }
コード例 #2
0
ファイル: BookmarksTables.cs プロジェクト: zanhaipeng/npoi
        private void Read(byte[] tableStream, FileInformationBlock fib)
        {
            int namesStart  = fib.GetFcSttbfbkmk();
            int namesLength = fib.GetLcbSttbfbkmk();

            if (namesStart != 0 && namesLength != 0)
            {
                this.names = SttbfUtils.Read(tableStream, namesStart);
            }

            int firstDescriptorsStart  = fib.GetFcPlcfbkf();
            int firstDescriptorsLength = fib.GetLcbPlcfbkf();

            if (firstDescriptorsStart != 0 && firstDescriptorsLength != 0)
            {
                descriptorsFirst = new PlexOfCps(tableStream,
                                                 firstDescriptorsStart, firstDescriptorsLength,
                                                 BookmarkFirstDescriptor.GetSize());
            }

            int limDescriptorsStart  = fib.GetFcPlcfbkl();
            int limDescriptorsLength = fib.GetLcbPlcfbkl();

            if (limDescriptorsStart != 0 && limDescriptorsLength != 0)
            {
                descriptorsLim = new PlexOfCps(tableStream, limDescriptorsStart,
                                               limDescriptorsLength, 0);
            }
        }