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

All Samples(15)  |  Call(15)  |  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)

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)

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)
 

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)

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)

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)
  def set_data(self, data):
    if self.data == None:
      self._create_data()
    self.data[20:20+len(data)] = data
    self.size = (20 + len(data)) / 4

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)

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)

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)

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