function gridRingUnsafe(h3Index, ringSize) {
    const maxCount = ringSize === 0 ? 1 : 6 * ringSize;
    const hexagons = C._calloc(maxCount, SZ_H3INDEX);
    try {
        throwIfError(H3.gridRingUnsafe(...h3IndexToSplitLong(h3Index), ringSize, hexagons));
        return readArrayOfH3Indexes(hexagons, maxCount);
    } finally {
        C._free(hexagons);
    }
}
Get all hexagons in a hollow hexagonal ring centered at origin with sides of a given length.
Unlike gridDisk, this function will throw an error if there is a pentagon anywhere in the ring.
@static
@param  {H3IndexInput} h3Index  H3 index of center hexagon
@param  {number} ringSize  Radius of ring
@return {H3Index[]}        H3 indexes for all hexagons in ring
@throws {Error}            If the algorithm could not calculate the ring
@throws {H3Error}          If input is invalid