// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// This file contains support functions for exportdata.

package exportdata

import (
	
	
	
	
)

// Copy of cmd/internal/archive.ReadHeader.
func readArchiveHeader( *bufio.Reader,  string) int {
	// architecture-independent object file output
	const  = 60

	var  []byte
	if ,  := io.ReadFull(, [:]);  != nil {
		return -1
	}
	 := strings.Trim(string([0:16]), " ")
	if !strings.HasPrefix(, ) {
		return -1
	}
	 := strings.Trim(string([48:58]), " ")
	,  := strconv.Atoi()
	return 
}