public static void setWriterBuffer(BufferedWriter writer, char[] buffer) {
		try {
			BW_SET_BUFFER.invokeExact(writer, buffer);
			BW_SET_NCHARS.invokeExact(writer, buffer.length);
		} catch (Throwable t) {
			logger.error("Failed to set buffer for writer", t);
			throw new AssertionError(t);
		}
	}
Updates underlying buffer of a given {@link BufferedWriter}.

@param writer
		Writer to update.
@param buffer
		Buffer to set.
recaf-core/src/main/java/software/coley/recaf/util/UnsafeIO.java