func verifyByteVersionMarker(r io.Reader) error {
	buf := make([]byte, 4)
	// First four bytes must be the version marker.
	if n, err := r.Read(buf); err != nil || n != 4 {
		return errors.Errorf("read %d bytes of binary version marker with err: %v", n, err)
	}
	if bytes.Compare(buf, ion10BVM) != 0 {
		return errors.Errorf("invalid binary version marker: %0 #x", buf)
	}
	return nil
}
// verifyByteVersionMarker reads the BVM from the stream and ensures that it matches
// what is expected for Ion 1.0.
verifyByteVersionMarker reads the BVM from the stream and ensures that it matches
what is expected for Ion 1.0.
// verifyByteVersionMarker reads the BVM from the stream and ensures that it matches // what is expected for Ion 1 . 0 .
func verifyByteVersionMarker(r io.Reader) error {
	buf := make([]byte, 4)
	if n, err := r.Read(buf); err != nil || n != 4 {
		return errors.Errorf("read %d bytes of binary version marker with err: %v", n, err)
	}
	if bytes.Compare(buf, ion10BVM) != 0 {
		return errors.Errorf("invalid binary version marker: %0 #x", buf)
	}
	return nil
}
func verifyByteVersionMarker ( r io . Reader ) error { buf := make ( [ ] byte , 4 ) if n , err := r . Read ( buf ) ; err != nil || n != 4 { return errors . Errorf ( " " , n , err ) } if bytes . Compare ( buf , ion10BVM ) != 0 { return errors . Errorf ( " " , buf ) } return nil }
verifyByteVersionMarker reads the BVM from the stream and ensures that it matches
what is expected for Ion 1.0.
verifyByteVersionMarker reads the BVM from the stream and ensures that it matches what is expected for Ion 1 . 0 .
// First four bytes must be the version marker.