func (a Array) Index(index uint) Value {
	value, err := a.IndexErr(index)
	if err != nil {
		panic(err)
	}
	return value
}
Index searches for and retrieves the value at the given index. This method will panic if
the array is invalid or if the index is out of bounds.
package bsoncore
import (
	"bytes"
	"fmt"
	"io"
	"strconv"
)
func NewArrayLengthError(length, rem int) error {
	return lengthError("array", length, rem)
}
type Array []byte
func NewArrayFromReader(r io.Reader) (Array, error) {
	return newBufferFromReader(r)
}