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