You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: parser.go
    path of file: ./repos/gotosocial/vendor/github.com/dsoprea/go-exif/v3/common
    
    the code of the file until where you have to start completion: package exifcommon

import (
	"bytes"
	"errors"
	"math"

	"encoding/binary"

	"github.com/dsoprea/go-logging"
)

var (
	parserLogger = log.NewLogger("exifcommon.parser")
)

var (
	ErrParseFail = errors.New("parse failure")
)

// Parser knows how to parse all well-defined, encoded EXIF types.
type Parser struct {
}

// ParseBytesknows how to parse a byte-type value.
func (p *Parser) ParseBytes(data []byte, unitCount uint32) (value []uint8, err error) {
	defer func() {
		if state := recover(
    
func (p *Parser) ParseSignedLongs(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []int32, err error) {
	defer func() {
		if state := recover(); state != nil {
			err = log.Wrap(state.(error))
		}
	}()

	// TODO(dustin): Add test

	count := int(unitCount)

	if len(data) < (TypeSignedLong.Size() * count) {
		log.Panic(ErrNotEnoughData)
	}

	b := bytes.NewBuffer(data)

	value = make([]int32, count)
	for i := 0; i < count; i++ {
		err := binary.Read(b, byteOrder, &value[i])
		log.PanicIf(err)
	}

	return value, nil
}