Buffer.alloc(10),// buffer where to store the data
0,// offset in the buffer
10,// number of bytes to read
0,// offset in the file
function(err,bytesRead,buffer){
smb2Client.close(fd,function(){})
if(err)throwcb(err)
console.log(bytesRead,buffer)
}
)
})
```
> This API is modeled after Node's `fs` module.
> Note: be careful of `autoCloseTimeout` with this process as it is not intended to cover multiple method calls, you should set it to `0` and manually `disconnect()`.