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)
  def write(self):
    Block._create_data(self)
    self._put_long(1, self.own_key)
    self._put_long(2, self.block_count)
    self._put_long(4, self.first_data)
 
    # data blocks
    for i in xrange(len(self.data_blocks)):
      self._put_long(-51-i, self.data_blocks[i])
      self._put_long(-51-i, self.data_blocks[i])
 
    self._put_long(-48, self.protect)
    self._put_long(-47, self.byte_size)
    self._put_bstr(-46, 79, self.comment)

src/a/m/amitools-HEAD/amitools/fs/block/RootBlock.py   amitools(Download)
  def write(self):
    self._create_data()
 
    # hash table
    self._put_long(3, self.hash_size)
    for i in xrange(self.hash_size):
      self._put_long(6+i, self.hash_table[i])
 
    # bitmap
    self._put_long(-50, self.bitmap_flag)
    self._put_long(-50, self.bitmap_flag)
    for i in xrange(25):
      self._put_long(-49+i, self.bitmap_ptrs[i])
    self._put_long(-24, self.bitmap_ext_blk)
 

src/a/m/amitools-HEAD/amitools/fs/block/UserDirBlock.py   amitools(Download)
  def write(self):
    Block._create_data(self)
    self._put_long(1, self.own_key)
    self._put_long(-48, self.protect)
    self._put_bstr(-46, 79, self.comment)
    self._put_timestamp(-23, self.mod_ts)
    self._put_bstr(-20, 30, self.name)
    self._put_long(-4, self.hash_chain)
    self._put_long(-3, self.parent)
    self._put_long(-2, self.extension)

src/a/m/amitools-HEAD/amitools/fs/block/rdb/RDBlock.py   amitools(Download)
  def write(self):
    self._create_data()
 
    self._put_long(1, self.size)
    self._put_long(3, self.host_id)
    self._put_long(4, self.block_size)
    self._put_long(5, self.flags)
 
    self._put_long(6, self.badblk_list)

src/a/m/amitools-HEAD/amitools/fs/block/rdb/BadBlocksBlock.py   amitools(Download)
  def write(self):
    self._create_data()
 
    self._put_long(1, self.size)
    self._put_long(3, self.host_id)
    self._put_long(4, self.next)
    off = 6
    for b in self.block_pairs:
      self._put_long(off, b)
      off += 1
 

src/a/m/amitools-HEAD/amitools/fs/block/FileListBlock.py   amitools(Download)
  def write(self):
    Block._create_data(self)
    self._put_long(1, self.own_key)
    self._put_long(2, self.block_count)
 
    # data blocks
    for i in xrange(len(self.data_blocks)):
      self._put_long(-51-i, self.data_blocks[i])
 
    self._put_long(-3, self.parent)
 
    self._put_long(-3, self.parent)
    self._put_long(-2, self.extension)
    Block.write(self)
 

src/a/m/amitools-HEAD/amitools/fs/block/rdb/LoadSegBlock.py   amitools(Download)
  def write(self):
    if self.data == None:
      self._create_data()
 
    self._put_long(1, self.size)
    self._put_long(3, self.host_id)
    self._put_long(4, self.next)

src/a/m/amitools-HEAD/amitools/fs/block/FileDataBlock.py   amitools(Download)
  def write(self):
    Block._create_data(self)
    self._put_long(1, self.hdr_key)
    self._put_long(2, self.seq_num)
    self._put_long(3, self.data_size)
    self._put_long(4, self.next_data)

src/a/m/amitools-HEAD/amitools/fs/block/DirCacheBlock.py   amitools(Download)
  def write(self):
    Block._create_data(self)
    self._put_long(1, self.own_key)
    self._put_long(2, self.parent)
    self._put_long(3, self.num_records)
    self._put_long(4, self.next_cache)

src/a/m/amitools-HEAD/amitools/fs/block/BitmapExtBlock.py   amitools(Download)
  def write(self):
    self._create_data()
    for i in xrange(self.blkdev.block_longs-1):
      self._put_long(i, self.bitmap_ptrs[i])
    self._put_long(-1, self.bitmap_ext_blk)

  1 | 2  Next