func parseBinaryVersionMarker(r io.Reader) (Value, error) {
	numBytes := len(ion10BVM)
	bvm := make([]byte, numBytes)
	bvm[0] = ion10BVM[0]
	if n, err := r.Read(bvm[1:]); err != nil || n != numBytes-1 {
		return nil, errors.Errorf("unable to read binary version marker - read %d bytes of %d with err: %v", n, numBytes-1, err)
	}

	if err := verifyByteVersionMarker(bytes.NewReader(bvm)); err != nil {
		return nil, err
	}

	return nil, nil
}
// parseBinaryVersionMarker verifies that what is read next is a valid BVM.  If it is
// then a nil Value and error are returned.  It is assumed that the first byte has already
// been read and that it's value is 0xE0.
parseBinaryVersionMarker verifies that what is read next is a valid BVM.  If it is
then a nil Value and error are returned.  It is assumed that the first byte has already
been read and that it's value is 0xE0.
// parseBinaryVersionMarker verifies that what is read next is a valid BVM . If it is // then a nil Value and error are returned . It is assumed that the first byte has already // been read and that it ' s value is 0xE0 .
func parseBinaryVersionMarker(r io.Reader) (Value, error) {
	numBytes := len(ion10BVM)
	bvm := make([]byte, numBytes)
	bvm[0] = ion10BVM[0]
	if n, err := r.Read(bvm[1:]); err != nil || n != numBytes-1 {
		return nil, errors.Errorf("unable to read binary version marker - read %d bytes of %d with err: %v", n, numBytes-1, err)
	}
	if err := verifyByteVersionMarker(bytes.NewReader(bvm)); err != nil {
		return nil, err
	}
	return nil, nil
}
func parseBinaryVersionMarker ( r io . Reader ) ( Value , error ) { numBytes := len ( ion10BVM ) bvm := make ( [ ] byte , numBytes ) bvm [ 0 ] = ion10BVM [ 0 ] if n , err := r . Read ( bvm [ 1 : ] ) ; err != nil || n != numBytes - 1 { return nil , errors . Errorf ( " " , n , numBytes - 1 , err ) } if err := verifyByteVersionMarker ( bytes . NewReader ( bvm ) ) ; err != nil { return nil , err } return nil , nil }
parseBinaryVersionMarker verifies that what is read next is a valid BVM.
parseBinaryVersionMarker verifies that what is read next is a valid BVM .