

def fromString(cls, string, start, ignoreErrors=False):
    'Decode dbf field definition from the string data.\n\n        Arguments:\n            string:\n                a string, dbf definition is decoded from. length of\n                the string must be 32 bytes.\n            start:\n                position in the database file.\n            ignoreErrors:\n                initial error processing mode for the new field (boolean)\n\n        '
    assert (len(string) == 32)
    _length = string[16]
    return cls(utils.unzfill(string)[:11].decode('utf-8'), _length, string[17], start, (start + _length), ignoreErrors=ignoreErrors)

dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/fields.py DbfFieldDef.fromString/original