I am currently developing a program and the idea involves scanning through all bytes in a process (the process the dll is injected into) and if a function is found at the byte, returning information and continuing the scan.

My only question is - what's the most effecient way to scan through all bytes in a process (current process) and checking if the bytes scanned are a function?