GRAI96.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:tagberry 作者: csailer 项目源码 文件源码
def _updateBitString(self):

        #Set the PackString Format
        self._packStringFormat = 'uint:8, uint:3, uint:3, uint:%s, uint:%s, uint:38' % (self.getField("CompanyPrefix").getBitLength(),self.getField("AssetType").getBitLength())
        #Pack the bitstring
        bsp=  bitstring.pack(self._packStringFormat, 
            self.getFieldValue("Header"), 
            self.getFieldValue("Filter"),
            self.getFieldValue("Partition"), 
            self.getFieldValue("CompanyPrefix"), 
            self.getFieldValue("AssetType"),
            self.getFieldValue("Serial"))
        #Set the _bits for the GRAI-96
        self._bits = bsp.unpack("bin")[0][2:]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号