Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(54)  |  Call(54)  |  Derive(0)  |  Import(0)

src/a/m/amitools-HEAD/amitools/fs/block/FileHeaderBlock.py   amitools(Download)
 
    # FileHeader fields
    self.own_key = self._get_long(1)
    self.block_count = self._get_long(2)
    self.first_data = self._get_long(4)
    self.data_blocks = []
    for i in xrange(bc):
      self.data_blocks.append(self._get_long(-51-i))
 
    self.protect = self._get_long(-48)

src/a/m/amitools-HEAD/amitools/fs/block/UserDirBlock.py   amitools(Download)
 
    # UserDir fields
    self.own_key = self._get_long(1)
    self.protect = self._get_long(-48)
    self.comment = self._get_bstr(-46, 79)
    self.mod_ts = self._get_timestamp(-23)
    self.name = self._get_bstr(-20, 30)
    self.hash_chain = self._get_long(-4)
    self.parent = self._get_long(-3)
    self.extension = self._get_long(-2)

src/a/m/amitools-HEAD/amitools/fs/block/rdb/RDBlock.py   amitools(Download)
      return False
 
    self.size = self._get_long(1)
    self.host_id = self._get_long(3)
    self.block_size = self._get_long(4)
    self.flags = self._get_long(5)
 
    self.badblk_list = self._get_long(6)

src/a/m/amitools-HEAD/amitools/fs/block/RootBlock.py   amitools(Download)
 
    # name hash (limit to max size)
    self.hash_size = self._get_long(3)
 
    # read (limited) hash
    self.hash_table = []
    for i in xrange(hs):
      self.hash_table.append(self._get_long(6+i))
 
    # bitmap
    self.bitmap_flag = self._get_long(-50)
    self.bitmap_ptrs = []
    for i in xrange(25):
      bm_blk = self._get_long(-49+i)
      bm_blk = self._get_long(-49+i)
      self.bitmap_ptrs.append(bm_blk)
    self.bitmap_ext_blk = self._get_long(-24)
 
    # timestamps

src/a/m/amitools-HEAD/amitools/fs/block/FileListBlock.py   amitools(Download)
 
    # FileList fields
    self.own_key = self._get_long(1)
    self.block_count = self._get_long(2)
 
    self.data_blocks = []
    for i in xrange(bc):
      self.data_blocks.append(self._get_long(-51-i))
 
    self.parent = self._get_long(-3)
    self.extension = self._get_long(-2)

src/a/m/amitools-HEAD/amitools/fs/block/FileDataBlock.py   amitools(Download)
 
    # FileData fields
    self.hdr_key = self._get_long(1)
    self.seq_num = self._get_long(2)
    self.data_size = self._get_long(3)
    self.next_data = self._get_long(4)

src/a/m/amitools-HEAD/amitools/fs/block/rdb/BadBlocksBlock.py   amitools(Download)
      return False
 
    self.size = self._get_long(1)
    self.host_id = self._get_long(3)
    self.next = self._get_long(4)
 
    self.block_pairs = []
    off = 6
    while off < self.block_longs:
      b = self._get_long(off)

src/a/m/amitools-HEAD/amitools/fs/block/rdb/LoadSegBlock.py   amitools(Download)
      return False
 
    self.size = self._get_long(1)
    self.host_id = self._get_long(3)
    self.next = self._get_long(4)

src/a/m/amitools-HEAD/amitools/fs/block/DirCacheBlock.py   amitools(Download)
 
    # fields
    self.own_key = self._get_long(1)
    self.parent = self._get_long(2)
    self.num_records = self._get_long(3)
    self.next_cache = self._get_long(4)  

src/a/m/amitools-HEAD/amitools/fs/block/BitmapExtBlock.py   amitools(Download)
  def _read(self):
    # read bitmap blk ptrs
    self.bitmap_ptrs = []
    for i in xrange(self.blkdev.block_longs-1):
      bm_blk = self._get_long(i)
      self.bitmap_ptrs.append(bm_blk)
 
    self.bitmap_ext_blk = self._get_long(-1)

  1 | 2  Next