def string_from_offset()

in hancitor/hancitor.py [0:0]


    def string_from_offset(data: bytes, offset: int) -> bytes:
        string = data[offset : offset + MAX_STRING_SIZE].split(b"\0")[0]
        return string