コード例 #1
0
        public override void Write(Record record, PageCursor cursor)
        {
            PageCountRecord r      = ( PageCountRecord )record;
            int             shorts = RecordSize / 2;

            for (int i = 0; i < shorts; i++)
            {
                cursor.PutShort(r.RecordId);
            }
        }
コード例 #2
0
            public override bool Equals(object o)
            {
                if (this == o)
                {
                    return(true);
                }
                if (o == null || this.GetType() != o.GetType())
                {
                    return(false);
                }

                PageCountRecord that = ( PageCountRecord )o;

                return(Arrays.Equals(Bytes, that.Bytes));
            }