function gridDisk(h3Index, ringSize) {
    const [lower, upper] = h3IndexToSplitLong(h3Index);
    const countPtr = C._malloc(SZ_INT64);
    try {
        throwIfError(H3.maxGridDiskSize(ringSize, countPtr));
        const count = validateArrayLength(readInt64AsDoubleFromPointer(countPtr));
        const hexagons = C._calloc(count, SZ_H3INDEX);
        try {
            throwIfError(H3.gridDisk(lower, upper, ringSize, hexagons));
            return readArrayOfH3Indexes(hexagons, count);
        } finally {
            C._free(hexagons);
        }
    } finally {
        C._free(countPtr);
    }
}
Get all hexagons in a k-ring around a given center. The order of the hexagons is undefined.
@static
@param  {H3IndexInput} h3Index  H3 index of center hexagon
@param  {number} ringSize  Radius of k-ring
@return {H3Index[]}        H3 indexes for all hexagons in ring
@throws {H3Error}          If input is invalid or output is too large for JS