This section documents some of the internal APIs used inside Mono that developers extending or altering Mono might want to use.
These routines are used when coping with strings that come from Mono's environment, and might be encoded in one or more of the external encodings.
For example, some file systems might historically contain a mix of file names with both old and new encodings, typically UTF8 for new files, and the old files would be encoded in an 8 bit character set (ISO-8859-1 for example).
These routines try a number of encodings, those specified in the MONO_ENCODINGS environment variable and return unicode strings that can be used internally.
See the mono(1) man page for more details.
The locking functions here are used by code in class.c and metadata.c to lock access to the shared hashtables inside the MonoImage.
The internal interface of the Mono GC is the interface used between the runtime engine and the garbage collector.