equalfile.go
func NewMultiple(buf []byte, options Options, h hash.Hash, compareOnMatch bool) *Cmp {
	c := &Cmp{
		Opt:              options,
		hashType:         h,
		hashMatchCompare: compareOnMatch,
		hashTable:        map[string]hashSum{},
		buf:              buf,
	}
	if c.buf == nil || len(c.buf) == 0 {
		c.buf = make([]byte, defaultBufSize)
	}
	c.debugf("New: bufSize=%d\n", len(c.buf))
	return c
}
func NewMultiple(buf []byte, options Options, h hash.Hash, compareOnMatch bool) *Cmp {
	c := &Cmp{
		Opt:              options,
		hashType:         h,
		hashMatchCompare: compareOnMatch,
		hashTable:        map[string]hashSum{},
		buf:              buf,
	}
	if c.buf == nil || len(c.buf) == 0 {
		c.buf = make([]byte, defaultBufSize)
	}
	c.debugf("New: bufSize=%d\n", len(c.buf))
	return c
}
func NewMultiple ( buf [ ] byte , options Options , h hash . Hash , compareOnMatch bool ) * Cmp { c := & Cmp { Opt : options , hashType : h , hashMatchCompare : compareOnMatch , hashTable : map [ string ] hashSum { } , buf : buf , } if c . buf == nil || len ( c . buf ) == 0 { c . buf = make ( [ ] byte , defaultBufSize ) } c . debugf ( " \n " , len ( c . buf ) ) return c }
// New creates Cmp for multiple comparison mode.
New creates Cmp for multiple comparison mode .