def load_data(self, key, data): LruPage.load_data(self, key,data) self.SizeOfPageHeaderData = memoffset['PageHeaderData.pd_linp'] self.pd_lsn, = struct.unpack_from('Q', self.data, memoffset['PageHeaderData.pd_lsn']) self.pd_checksum, = struct.unpack_from('H', self.data, memoffset['PageHeaderData.pd_checksum']) self.pd_flags, = struct.unpack_from('H', self.data, memoffset['PageHeaderData.pd_flags']) self.pd_lower, = struct.unpack_from('H', self.data, memoffset['PageHeaderData.pd_lower']) self.pd_upper, = struct.unpack_from('H', self.data, memoffset['PageHeaderData.pd_upper']) self.pd_special, = struct.unpack_from('H', self.data, memoffset['PageHeaderData.pd_special']) self.pd_pagesize_version, = struct.unpack_from('H', self.data, memoffset['PageHeaderData.pd_pagesize_version'])
def load_data(self, key, data): LruPage.load_data(self, key, data) self.SizeOfPageHeaderData = memoffset['PageHeaderData.pd_linp'] self.pd_lsn, = struct.unpack_from('Q', self.data, memoffset['PageHeaderData.pd_lsn']) self.pd_checksum, = struct.unpack_from( 'H', self.data, memoffset['PageHeaderData.pd_checksum']) self.pd_flags, = struct.unpack_from( 'H', self.data, memoffset['PageHeaderData.pd_flags']) self.pd_lower, = struct.unpack_from( 'H', self.data, memoffset['PageHeaderData.pd_lower']) self.pd_upper, = struct.unpack_from( 'H', self.data, memoffset['PageHeaderData.pd_upper']) self.pd_special, = struct.unpack_from( 'H', self.data, memoffset['PageHeaderData.pd_special']) self.pd_pagesize_version, = struct.unpack_from( 'H', self.data, memoffset['PageHeaderData.pd_pagesize_version'])
def load_data(self, key, data): LruPage.load_data(self, key,data)
def load_data(self, key, data): LruPage.load_data(self, key, data)