How to use selection buffer? Tuts & examples welcome

I’d like to see some basic usage of it, because some examples don’t clearly state how to use the functions.

If you have find any useful examples can you send me? or can u explain using selection buffer for collision detection?