// Itobe writes an unsigned integer to the end of a given byte buffer.
Itobe writes an unsigned integer to the end of a given byte buffer.
// Itobe writes an unsigned integer to the end of a given byte buffer .
func Itobe(number uint64, buffer []byte) error {
	for i := len(buffer) - 1; i >= 0; i-- {
		buffer[i] = '0' + byte(number%10)
		number /= 10
		if number == 0 {
			return nil
		}
	}
	return fmt.Errorf("Number too large for buffer")
}
func Itobe ( number uint64 , buffer [ ] byte ) error { for i := len ( buffer ) - 1 ; i >= 0 ; i -- { buffer [ i ] = '0' + byte ( number % 10 ) number /= 10 if number == 0 { return nil } } return fmt . Errorf ( " " ) }
Itobe writes an unsigned integer to the end of a given byte buffer.
Itobe writes an unsigned integer to the end of a given byte buffer .
// Check here because the number 0 has to be written, too