external factory WriteStreamOptions({ String flags, String encoding, int fd, int mode, bool autoClose, int start, });