func (p Uint24) WriteTo(w io.Writer) (int64, error) {
	wrote, err := w.Write(p[:])
	return int64(wrote), err
}
WriteTo encode and write bytes to a writer.
package u24
import (
	"errors"
	"fmt"
	"io"
)
const MaxUint24 = 16777215
var (
	errExceedMaxUint24 = fmt.Errorf("uint24 exceed max value: %d", MaxUint24)
	errNegativeNumber  = errors.New("negative number is illegal")
)
func IsExceedMaximumUint24Error(err error) bool {
	return err == errExceedMaxUint24
}
func IsNegativeUint24Error(err error) bool {
	return err == errNegativeNumber
}
type Uint24 [3]byte
func (p Uint24) Bytes() []byte {
	return p[:]
}