(self)
return ret
Provide binary string representation
Provide binary string representation
Provide binary string representation
def encode(self):
        'Provide binary string representation'
        import struct

        ret = ""

        for field in DBHDR.format:
            name,bytes,typecode = field
            value = self.__dict__[name]
            buf = struct.pack('<'+typecode,value)
            ret += buf
            continue
        return ret
def encode ( self ) : import struct ret = "" for field in DBHDR . format : name , bytes , typecode = field value = self . __dict__ [ name ] buf = struct . pack ( '<' + typecode , value ) ret += buf continue return ret