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: ot_gdef_gen.go
    path of file: ./repos/gdlv/vendor/github.com/go-text/typesetting/opentype/tables
    
    the code of the file until where you have to start completion: // SPDX-License-Identifier: Unlicense OR BSD-3-Clause

package tables

import (
	"encoding/binary"
	"fmt"
)

// Code generated by binarygen from ot_gdef_src.go. DO NOT EDIT

func (item *CaretValue1) mustParse(src []byte) {
	_ = src[3] // early bound checking
	item.caretValueFormat = binary.BigEndian.Uint16(src[0:])
	item.Coordinate = int16(binary.BigEndian.Uint16(src[2:]))
}

func (item *CaretValue2) mustParse(src []byte) {
	_ = src[3] // early bound checking
	item.caretValueFormat = binary.BigEndian.Uint16(src[0:])
	item.CaretValuePointIndex = binary.BigEndian.Uint16(src[2:])
}

func (item *ClassRangeRecord) mustParse(src []byte) {
	_ = src[5] // early bound checking
	item.StartGlyphID = bina
    
func ParseLigCaretList(src []byte) (LigCaretList, int, error) {
	var item LigCaretList
	n := 0
	if L := len(src); L < 4 {
		return item, 0, fmt.Errorf("reading LigCaretList: "+"EOF: expected length: 4, got %d", L)
	}
	_ = src[3] // early bound checking
	offsetCoverage := int(binary.BigEndian.Uint16(src[0:]))
	arrayLengthLigGlyphs := int(binary.BigEndian.Uint16(src[2:]))
	n += 4

	{

		if offsetCoverage != 0 { // ignore null offset
			if L := len(src); L < offsetCoverage {
				return item, 0, fmt.Errorf("reading LigCaretList: "+"EOF: expected length: %d, got %d", offsetCoverage, L)
			}

			var (
				err  error
				read int
			)
			item.Coverage, read, err = ParseCoverage(src[offsetCoverage:])
			if err != nil {
				return item, 0, fmt.Errorf("reading LigCaretList: %s", err)
			}
			offsetCoverage += read
		}
	}
	{

		if L := len(src); L < 4+arrayLengthLigGlyphs*2 {
			return item, 0, fmt.Errorf("reading LigCaretList: "+"EOF: expected length: %d, got %d", 4+arrayLengthLigGlyphs*2, L)
		}

		item.LigGlyphs = make([]LigGlyph, arrayLengthLigGlyphs) // allocation guarded by the previous check
		for i := range item.LigGlyphs {
			offset := int(binary.BigEndian.Uint16(src[4+i*2:]))
			// ignore null offsets
			if offset == 0 {
				continue
			}

			if L := len(src); L < offset {
				return item, 0, fmt.Errorf("reading LigCaretList: "+"EOF: expected length: %d, got %d", offset, L)
			}

			var err error
			item.LigGlyphs[i], _, err = ParseLigGlyph(src[offset:])
			if err != nil {
				return item, 0, fmt.Errorf("reading LigCaretList: %s", err)
			}
		}
		n += arrayLengthLigGlyphs * 2
	}
	return item, n, nil
}