示例#1
0
def mst_node(ubifs, lnum, offset=0):
    """Get master node at given LEB number + offset.

    Arguments:
    Obj:ubifs   -- UBIFS object.
    Int:lnum    -- LEB number master node is in.
    Int:offset  -- Offset in LEB of master node.

    Returns:
    Obj:mst_node    -- Master node found at lnum/offset.
    """
    ubifs.file.seek((ubifs.leb_size * lnum) + offset)
    return nodes.mst_node(ubifs.file.read(UBIFS_MST_NODE_SZ))
def mst_node(ubifs, lnum, offset=0):
    """Get master node at given LEB number + offset.

    Arguments:
    Obj:ubifs   -- UBIFS object.
    Int:lnum    -- LEB number master node is in.
    Int:offset  -- Offset in LEB of master node.

    Returns:
    Obj:mst_node    -- Master node found at lnum/offset.
    """
    ubifs.file.seek((ubifs.leb_size * lnum) + offset)
    return nodes.mst_node(ubifs.file.read(UBIFS_MST_NODE_SZ))
示例#3
0
def mst_node(ubifs, lnum, offset = 0):
    ubifs.file.seek(ubifs.leb_size * lnum + offset)
    return nodes.mst_node(ubifs.file.read(UBIFS_MST_NODE_SZ))
示例#4
0
def mst_node(ubifs, lnum, offset=0):
    ubifs.file.seek(ubifs.leb_size * lnum + offset)
    return nodes.mst_node(ubifs.file.read(UBIFS_MST_NODE_SZ))