answered 2 years ago
The method that performs the equivalent conversion can be found here. And some background description of the implementation can be found here.