You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- | Read from a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback)
385
323
-- | for details.
386
324
fdRead
387
-
::F.FileDescriptor
325
+
::FileDescriptor
388
326
->Buffer
389
-
->F.BufferOffset
390
-
->F.BufferLength
391
-
->MaybeF.FilePosition
392
-
->AffF.ByteCount
327
+
->BufferOffset
328
+
->BufferLength
329
+
->MaybeFilePosition
330
+
->AffByteCount
393
331
fdRead = toAff5 A.fdRead
394
332
333
+
-- | Read from a file asynchronously. See the [Node Documentation](https://nodejs.org/docs/latest/api/fs.html#fsreadfd-options-callback)
334
+
-- | for details.
335
+
fdRead'
336
+
::FileDescriptor
337
+
->FdReadOptions
338
+
->Aff (TupleByteCountBuffer)
339
+
fdRead' = toAff2 A.fdRead'
340
+
395
341
-- | Convenience function to fill the whole buffer from the current
396
342
-- | file position.
397
-
fdNext::F.FileDescriptor->Buffer->AffF.ByteCount
343
+
fdNext::FileDescriptor->Buffer->AffByteCount
398
344
fdNext = toAff2 A.fdNext
399
345
400
346
-- | Write to a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_write_fd_buffer_offset_length_position_callback)
401
347
-- | for details.
402
348
fdWrite
403
-
::F.FileDescriptor
349
+
::FileDescriptor
404
350
->Buffer
405
-
->F.BufferOffset
406
-
->F.BufferLength
407
-
->MaybeF.FilePosition
408
-
->AffF.ByteCount
351
+
->BufferOffset
352
+
->BufferLength
353
+
->MaybeFilePosition
354
+
->AffByteCount
409
355
fdWrite = toAff5 A.fdWrite
410
356
357
+
-- | Write from a file asynchronously. See the [Node Documentation](https://nodejs.org/docs/latest/api/fs.html#fswritefd-options-callback)
358
+
-- | for details.
359
+
fdWrite'
360
+
::FileDescriptor
361
+
->FdWriteOptions
362
+
->Aff (TupleByteCountBuffer)
363
+
fdWrite' = toAff2 A.fdWrite'
364
+
365
+
-- It is unsafe to use fs.write() multiple times on the same file without waiting for the callback. For this scenario, fs.createWriteStream() is recommended.
366
+
fdWriteString
367
+
::FileDescriptor
368
+
->String
369
+
->MaybeFilePosition
370
+
->Encoding
371
+
->Aff (TupleByteCountString)
372
+
fdWriteString = toAff4 A.fdWriteString
373
+
411
374
-- | Convenience function to append the whole buffer to the current
-- | Close a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_close_fd_callback)
417
380
-- | for details.
418
-
fdClose::F.FileDescriptor->AffUnit
381
+
fdClose::FileDescriptor->AffUnit
419
382
fdClose = toAff1 A.fdClose
420
383
421
384
-- | Copy a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fspromises_copyfile_src_dest_mode)
@@ -428,32 +391,32 @@ cp' = toAff3 A.cp'
428
391
429
392
-- | Change permissions on a file descriptor. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_fchmod_fd_mode_callback)
430
393
-- | for details.
431
-
fchmod::F.FileDescriptor->Perms->AffUnit
394
+
fchmod::FileDescriptor->Perms->AffUnit
432
395
fchmod = toAff2 A.fchmod
433
396
434
397
-- | Change ownership of a file descriptor. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_fchown_fd_uid_gid_callback)
435
398
-- | for details.
436
-
fchown::F.FileDescriptor->Int->Int->AffUnit
399
+
fchown::FileDescriptor->Int->Int->AffUnit
437
400
fchown = toAff3 A.fchown
438
401
439
402
-- | Synchronize a file's in-core state with storage. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_fdatasync_fd_callback)
440
403
-- | for details.
441
-
fdatasync::F.FileDescriptor->AffUnit
404
+
fdatasync::FileDescriptor->AffUnit
442
405
fdatasync = toAff1 A.fdatasync
443
406
444
407
-- | Get file status information. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_fstat_fd_callback)
445
408
-- | for details.
446
-
fstat::F.FileDescriptor->AffStats
409
+
fstat::FileDescriptor->AffStats
447
410
fstat = toAff1 A.fstat
448
411
449
412
-- | Flushes a file descriptor to disk. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_fsync_fd_callback)
450
413
-- | for details.
451
-
fsync::F.FileDescriptor->AffUnit
414
+
fsync::FileDescriptor->AffUnit
452
415
fsync = toAff1 A.fsync
453
416
454
417
-- | Truncate a file to a specified length. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_ftruncate_fd_len_callback)
455
418
-- | for details.
456
-
ftruncate::F.FileDescriptor->Int->AffUnit
419
+
ftruncate::FileDescriptor->Int->AffUnit
457
420
ftruncate = toAff2 A.ftruncate
458
421
459
422
-- | Change file timestamps for a file descriptor. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_futimes_fd_atime_mtime_callback)
@@ -507,7 +470,7 @@ opendir' = toAff2 A.opendir'
507
470
508
471
-- | Read from a file descriptor into a buffer array. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_readv_fd_buffers_position_callback)
-- | Write from an array of buffers to a file descriptor. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_writev_fd_buffers_position_callback)
0 commit comments