(self, cell_offset: int)
Returns the appropriate Node, interpreted from the Cell based on its
        Signature.
Returns the appropriate Node, interpreted from the Cell based on its
        Signature.
Returns the appropriate Node interpreted from the Cell based on its Signature .
def get_node(self, cell_offset: int) -> 'objects.StructType':
        """Returns the appropriate Node, interpreted from the Cell based on its
        Signature."""
        cell = self.get_cell(cell_offset)
        signature = cell.cast('string', max_length = 2, encoding = 'latin-1')
        if signature == 'nk':
            return cell.u.KeyNode
        elif signature == 'sk':
            return cell.u.KeySecurity
        elif signature == 'vk':
            return cell.u.KeyValue
        elif signature == 'db':
            # Big Data
            return cell.u.ValueData
        elif signature == 'lf' or signature == 'lh' or signature == 'ri':
            # Fast Leaf, Hash Leaf, Index Root
            return cell.u.KeyIndex
        else:
            # It doesn't matter that we use KeyNode, we're just after the first two bytes
            vollog.debug("Unknown Signature {} (0x{:x}) at offset {}".format(signature, cell.u.KeyNode.Signature,
                                                                             cell_offset))
            return cell
def get_node ( self , cell_offset : int ) -> 'objects.StructType' : cell = self . get_cell ( cell_offset ) signature = cell . cast ( 'string' , max_length = 2 , encoding = 'latin-1' ) if signature == 'nk' : return cell . u . KeyNode elif signature == 'sk' : return cell . u . KeySecurity elif signature == 'vk' : return cell . u . KeyValue elif signature == 'db' : # Big Data return cell . u . ValueData elif signature == 'lf' or signature == 'lh' or signature == 'ri' : # Fast Leaf, Hash Leaf, Index Root return cell . u . KeyIndex else : # It doesn't matter that we use KeyNode, we're just after the first two bytes vollog . debug ( "Unknown Signature {} (0x{:x}) at offset {}" . format ( signature , cell . u . KeyNode . Signature , cell_offset ) ) return cell