func DecodeConfig(r io.Reader) (cfg image.Config, err error) {
	b := make([]byte, 40)
	var n int

	if n, err = r.Read(b); n < len(b) {
		err = ErrFormat
	} else if err == nil {
		cfg.Width = int(LittleEndian.Uint32(b[32:]))
		cfg.Height = int(LittleEndian.Uint32(b[36:]))
	}

	return
}
// DecodeConfig decodes a header of WAL image and returns its
// configuration.
DecodeConfig decodes a header of WAL image and returns its
configuration.
// DecodeConfig decodes a header of WAL image and returns its // configuration .
func DecodeConfig(r io.Reader) (cfg image.Config, err error) {
	b := make([]byte, 40)
	var n int
	if n, err = r.Read(b); n < len(b) {
		err = ErrFormat
	} else if err == nil {
		cfg.Width = int(LittleEndian.Uint32(b[32:]))
		cfg.Height = int(LittleEndian.Uint32(b[36:]))
	}
	return
}
func DecodeConfig ( r io . Reader ) ( cfg image . Config , err error ) { b := make ( [ ] byte , 40 ) var n int if n , err = r . Read ( b ) ; n < len ( b ) { err = ErrFormat } else if err == nil { cfg . Width = int ( LittleEndian . Uint32 ( b [ 32 : ] ) ) cfg . Height = int ( LittleEndian . Uint32 ( b [ 36 : ] ) ) } return }
DecodeConfig decodes a header of WAL image and returns its
configuration.
DecodeConfig decodes a header of WAL image and returns its configuration .