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

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

src/a/m/amitools-HEAD/amitools/fs/block/FileHeaderBlock.py   amitools(Download)
  def create(self, parent, name, data_blocks, extension, byte_size=0, protect=0, comment=None, mod_ts=None, hash_chain=0):
    Block.create(self)
    self.own_key = self.blk_num
    n = len(data_blocks)
    self.block_count = n

src/a/m/amitools-HEAD/amitools/fs/block/FileDataBlock.py   amitools(Download)
  def create(self, hdr_key, seq_num, data, next_data):
    Block.create(self)
    self.hdr_key = hdr_key
    self.seq_num = seq_num
    self.data_size = len(data)

src/a/m/amitools-HEAD/amitools/fs/block/rdb/BadBlocksBlock.py   amitools(Download)
  def create(self, block_pairs, host_id, size=128, next=0):
    Block.create(self)
    self.size = size
    self.host_id = host_id
    self.next = next

src/a/m/amitools-HEAD/amitools/fs/block/rdb/LoadSegBlock.py   amitools(Download)
  def create(self, host_id=0, next=Block.no_blk, size=128):
    Block.create(self)
    self.size = size
    self.host_id = host_id
    self.next = next

src/a/m/amitools-HEAD/amitools/fs/block/UserDirBlock.py   amitools(Download)
  def create(self, parent, name, protect=0, comment=None, mod_ts=None, hash_chain=0, extension=0):
    Block.create(self)
    self.own_key = self.blk_num
    self.protect = protect
    if comment == None:

src/a/m/amitools-HEAD/amitools/fs/block/rdb/RDBlock.py   amitools(Download)
  def create(self, phy_drv, log_drv, drv_id,
             host_id=7, block_size=512, flags=0x17, 
             badblk_list=Block.no_blk, part_list=Block.no_blk, fs_list=Block.no_blk, init_code=Block.no_blk,
             size=64):
    Block.create(self)

src/a/m/amitools-HEAD/amitools/fs/block/FileListBlock.py   amitools(Download)
  def create(self, parent, data_blocks, extension):
    Block.create(self)
    self.own_key = self.blk_num
    self.block_count = len(data_blocks)
    self.data_blocks = data_blocks

src/a/m/amitools-HEAD/amitools/fs/block/RootBlock.py   amitools(Download)
  def create(self, name, create_ts=None, disk_ts=None, mod_ts=None, extension=0):
    Block.create(self)
    # init fresh hash table
    self.hash_size = self.blkdev.block_longs - 56
    self.hash_table = []

src/a/m/amitools-HEAD/amitools/fs/block/BootBlock.py   amitools(Download)
  def create(self, dos_type=DosType.DOS0, root_blk=None, boot_code=None):
    Block.create(self)
    self._create_data()
    self.dos_type = dos_type    
    self.valid_dos_type = True

src/a/m/amitools-HEAD/amitools/fs/block/DirCacheBlock.py   amitools(Download)
  def create(self, parent, records=None, next_cache=0):
    Block.create(self)
    self.own_key = self.blk_num
    self.parent = parent
    self.next_cache = next_cache