These functions are entirely trivial, their documentation is much longer than their implementation, and it contains an example that is annotated as "don't do this"...