'Given bytes and the current bytes offset, return the
type, state, path, and new offset'

@classmethod
def deserialize(cls, bytes, offset):

    (type, state) = int_int_struct.unpack_from(bytes, offset)
    offset += int_int_struct.size
    (path, offset) = read_string(bytes, offset)
    return (cls(type, state, path), offset)
