func LoadBinary(r io.Reader, rrHandler func(rr.Bytes) bool) (err error) {
	lbuf := []byte{0, 0}
	for {
		if err = fileutil.Read(r, lbuf); err != nil {
			return
		}

		msglen := int(lbuf[0])<<8 | int(lbuf[1])
		if msglen == 0 {
			break // Done
		}

		rbuf := make([]byte, msglen)
		if err = fileutil.Read(r, rbuf); err != nil {
			return
		}

		if !rrHandler(rr.Bytes(rbuf)) {
			return
		}

	}
	return
}
// Load attempts to load compiled RRs from r.
// rrHandler is invoked for every RRs pack found in the data.
// If rrHandler returns false the loading is aborted without error.
Load attempts to load compiled RRs from r.
rrHandler is invoked for every RRs pack found in the data.
If rrHandler returns false the loading is aborted without error.
// Load attempts to load compiled RRs from r . // rrHandler is invoked for every RRs pack found in the data . // If rrHandler returns false the loading is aborted without error .
func LoadBinary(r io.Reader, rrHandler func(rr.Bytes) bool) (err error) {
	lbuf := []byte{0, 0}
	for {
		if err = fileutil.Read(r, lbuf); err != nil {
			return
		}
		msglen := int(lbuf[0])<<8 | int(lbuf[1])
		if msglen == 0 {
			break 
		}
		rbuf := make([]byte, msglen)
		if err = fileutil.Read(r, rbuf); err != nil {
			return
		}
		if !rrHandler(rr.Bytes(rbuf)) {
			return
		}
	}
	return
}
func LoadBinary ( r io . Reader , rrHandler func ( rr . Bytes ) bool ) ( err error ) { lbuf := [ ] byte { 0 , 0 } for { if err = fileutil . Read ( r , lbuf ) ; err != nil { return } msglen := int ( lbuf [ 0 ] ) << 8 | int ( lbuf [ 1 ] ) if msglen == 0 { break } rbuf := make ( [ ] byte , msglen ) if err = fileutil . Read ( r , rbuf ) ; err != nil { return } if ! rrHandler ( rr . Bytes ( rbuf ) ) { return } } return }
Load attempts to load compiled RRs from r.
rrHandler is invoked for every RRs pack found in the data.
Load attempts to load compiled RRs from r . rrHandler is invoked for every RRs pack found in the data .
// Done