brukeropusreader/brukeropusreader/constants.py

14 lines
308 B
Python

HEADER_LEN = 504
UNSIGNED_INT = "<I"
UNSIGNED_CHAR = "<B"
UNSIGNED_SHORT = "<H"
INT = "<i"
DOUBLE = "<d"
NULL_BYTE = b"\x00"
NULL_STR = "\x00"
FIRST_CURSOR_POSITION = 24
META_BLOCK_SIZE = 12
ENCODING_LATIN = "latin-1"
ENCODING_UTF = "utf-8"
PARAM_TYPES = {0: "int", 1: "float", 2: "str", 3: "str", 4: "str"}