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/b/i/bitcoin-abe-HEAD/Abe/Chain.py   bitcoin-abe(Download)
    def serialize_block(chain, block):
        ds = BCDataStream.BCDataStream()
        chain.ds_serialize_block(ds, block)
        return ds.input
 
    def serialize_block_header(chain, block):
        ds = BCDataStream.BCDataStream()
    def serialize_transaction(chain, tx):
        ds = BCDataStream.BCDataStream()
        chain.ds_serialize_transaction(ds, tx)
        return ds.input
 

src/b/i/bitcoin-abe-HEAD/Abe/util.py   bitcoin-abe(Download)
def str_to_ds(s):
    import BCDataStream
    ds = BCDataStream.BCDataStream()
    ds.write(s)
    return ds

src/b/i/bitcoin-abe-HEAD/Abe/mixup.py   bitcoin-abe(Download)
        raise ValueError("--blkfile is required.")
 
    ds = BCDataStream.BCDataStream()
    file = open(args.blkfile, "rb")
    ds.map_file(file, 0)

src/b/i/bitcoin-abe-HEAD/Abe/DataStore.py   bitcoin-abe(Download)
        def open_blkfile(number):
            store._refresh_dircfg(dircfg)
            blkfile = {
                'stream': BCDataStream.BCDataStream(),
                'name': store.blkfile_name(dircfg, number),

src/a/b/Abe-0.7.2/Abe/mixup.py   Abe(Download)
 
    store = DataStore.new(args)
    ds = BCDataStream.BCDataStream()
    file = open(args.blkfile, "rb")
    ds.map_file(file, 0)

src/a/b/Abe-0.7.2/Abe/DataStore.py   Abe(Download)
        def open_blkfile():
            store._refresh_dircfg(dircfg)
            filename = store.blkfile_name(dircfg)
            ds = BCDataStream.BCDataStream()
            file = open(filename, "rb")

src/p/a/passe-partout-HEAD/pp/pp_lineage.py   passe-partout(Download)
  def Update(self, filename):
    """ Update map of transaction ancestry.
        heir tx hash -> progenitor tx hash """
    ds = BCDataStream.BCDataStream()
    ds.map_file(open(filename, 'rb'), 0)

src/b/i/bitcointools-HEAD/testBCDataStream.py   bitcointools(Download)
  def setUp(self):
    self.ds = BCDataStream.BCDataStream()
 
  def testString(self):
    t = {