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::Fn6FileDescriptorBufferBufferOffsetBufferLength (NullableFilePositionInt53) (JSCallbackByteCount) Unit
98
+
, write::Fn6FileDescriptorBufferBufferOffsetBufferLength (NullableFilePositionInt53) (JSCallbackByteCount) Unit
99
+
}
100
+
fsInt53 = unsafeRequireFS
101
+
102
+
94
103
-- | Type synonym for callback functions.
95
104
typeCallbackeffa=EitherErrora->Eff (fs::FS | eff) Unit
96
105
@@ -324,6 +333,18 @@ fdRead :: forall eff.
324
333
->Eff (buffer::BUFFER, fs::FS | eff) Unit
325
334
fdRead fd buff off len pos cb = mkEff $ \_ -> runFn6 fs.read fd buff off len (toNullable pos) (handleCallback cb)
326
335
336
+
-- | Read from a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback)
337
+
-- | for details.
338
+
fdReadInt53::foralleff.
339
+
FileDescriptor
340
+
->Buffer
341
+
->BufferOffset
342
+
->BufferLength
343
+
->MaybeFilePositionInt53
344
+
->Callback (buffer::BUFFER | eff) ByteCount
345
+
->Eff (buffer::BUFFER, fs::FS | eff) Unit
346
+
fdReadInt53 fd buff off len pos cb = mkEff $ \_ -> runFn6 fsInt53.read fd buff off len (toNullable pos) (handleCallback cb)
347
+
327
348
-- | Convenience function to fill the whole buffer from the current
328
349
-- | file position.
329
350
fdNext::foralleff.
@@ -347,6 +368,19 @@ fdWrite :: forall eff.
347
368
->Eff (buffer::BUFFER, fs::FS | eff) Unit
348
369
fdWrite fd buff off len pos cb = mkEff $ \_ -> runFn6 fs.write fd buff off len (toNullable pos) (handleCallback cb)
349
370
371
+
-- | Write to a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_write_fd_buffer_offset_length_position_callback)
372
+
-- | for details.
373
+
fdWriteInt53::foralleff.
374
+
FileDescriptor
375
+
->Buffer
376
+
->BufferOffset
377
+
->BufferLength
378
+
->MaybeFilePositionInt53
379
+
->Callback (buffer::BUFFER | eff) ByteCount
380
+
->Eff (buffer::BUFFER, fs::FS | eff) Unit
381
+
fdWriteInt53 fd buff off len pos cb = mkEff $ \_ -> runFn6 fsInt53.write fd buff off len (toNullable pos) (handleCallback cb)
382
+
383
+
350
384
-- | Convenience function to append the whole buffer to the current
0 commit comments