@Doc("Writes the given int to this File.")
public static class WriteUInt32 implements Intrinsic {
public Obj invoke(Context context, Obj left, Obj right) {
FileWriter writer = (FileWriter)left.getValue();
try {
writer.writeUInt32(right.asInt());
return right;
} catch (IOException e) {
throw context.error("IOError", "Could not write.");
}
}