toBytesRef

Just converts IntsRef to BytesRef; you must ensure the int values fit into a byte.