func (p *Parser) Free() {
	p.mutex.Lock()
	C.raptor_free_parser(p.parser)
	p.parser = nil
	C.raptor_free_world(p.world)
	p.world = nil
	p.mutex.Unlock()
}
func Reset() {
	world_lock.Lock()
	if global_world != nil {
		C.raptor_free_world(global_world)
	}
	global_world = C.raptor_new_world_internal(C.RAPTOR_VERSION)
	world_lock.Unlock()
}
func (s *Serializer) Free() {
	s.mutex.Lock()
	if s.running {
		s.end()
	}
	C.raptor_free_serializer(s.serializer)
	s.serializer = nil
	C.raptor_free_world(s.world)
	s.world = nil
	s.mutex.Unlock()
}