Kotlin mirror of std::vector (UTF-16)
Check if underlying resource is closed.
Free underlying native resource, peer is useless afterwards.