This function is a copy from the binary package, with some added error checking to avoid panics. The function will return the value, and the number of bytes read from the buffer. If the number of bytes is negative, then not enough bytes were passed in and the return value will be zero.

Uint64FromBytes is referenced in 1 repository