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: glyphs_misc_gen.go
    path of file: ./repos/caire/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 glyphs_misc_src.go. DO NOT EDIT

func ParseSVG(src []byte) (SVG, int, error) {
	var item SVG
	n := 0
	if L := len(src); L < 10 {
		return item, 0, fmt.Errorf("reading SVG: "+"EOF: expected length: 10, got %d", L)
	}
	_ = src[9] // early bound checking
	item.version = binary.BigEndian.Uint16(src[0:])
	offsetSVGDocumentList := int(binary.BigEndian.Uint32(src[2:]))
	item.reserved = binary.BigEndian.Uint32(src[6:])
	n += 10

	{

		if offsetSVGDocumentList != 0 { // ignore null offset
			if L := len(src); L < offsetSVGDocumentList {
				return item, 0, fmt.Errorf("reading SVG
    
func ParseSVGDocumentList(src []byte) (SVGDocumentList, int, error) {
	var item SVGDocumentList
	n := 0
	if L := len(src); L < 2 {
		return item, 0, fmt.Errorf("reading SVGDocumentList: "+"EOF: expected length: 2, got %d", L)
	}
	arrayLengthDocumentRecords := int(binary.BigEndian.Uint16(src[0:]))
	n += 2

	{

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

		item.DocumentRecords = make([]SVGDocumentRecord, arrayLengthDocumentRecords) // allocation guarded by the previous check
		for i := range item.DocumentRecords {
			item.DocumentRecords[i].mustParse(src[2+i*12:])
		}
		n += arrayLengthDocumentRecords * 12
	}
	{

		item.SVGRawData = src[0:]
		n = len(src)
	}
	return item, n, nil
}