// Btoi is a fast byte buffer to unsigned int parser that reads until the first
// non-number character is found. It returns the number value as well as the
// length of the number string encountered.
// If a number could not be parsed the returned length will be 0
Btoi is a fast byte buffer to unsigned int parser that reads until the first
non-number character is found. It returns the number value as well as the
length of the number string encountered.
If a number could not be parsed the returned length will be 0
// Btoi is a fast byte buffer to unsigned int parser that reads until the first // non - number character is found . It returns the number value as well as the // length of the number string encountered . // If a number could not be parsed the returned length will be 0
func Btoi(buffer []byte) (uint64, int) {
	number := uint64(0)
	index := 0
	bufferLen := len(buffer)
	for index < bufferLen && buffer[index] >= '0' && buffer[index] <= '9' {
		parsed := uint64(buffer[index] - '0')
		number = number*10 + parsed
		index++
	}
	return number, index
}
func Btoi ( buffer [ ] byte ) ( uint64 , int ) { number := uint64 ( 0 ) index := 0 bufferLen := len ( buffer ) for index < bufferLen && buffer [ index ] >= '0' && buffer [ index ] <= '9' { parsed := uint64 ( buffer [ index ] - '0' ) number = number * 10 + parsed index ++ } return number , index }
Btoi is a fast byte buffer to unsigned int parser that reads until the first
non-number character is found.
Btoi is a fast byte buffer to unsigned int parser that reads until the first non - number character is found .