WriteFile Method

Writes the specified part of a cached file.

Syntax

public void WriteFile(string fileId, long position, byte[] buffer, int index, int count);
Public Sub WriteFile(ByVal FileId As String, ByVal Position As Long, ByVal Buffer As String, ByVal Index As Integer, ByVal Count As Integer)

Remarks

This method writes data to the cached file identified by FileId from the specified Buffer. The cached file must be opened using OpenFile before it can be written to.

Up to Count bytes of data will be read from the given Buffer, starting at the given Index, into the cached file. The data is written to the cached file starting at the given Position.

.NET Standard Notes

To call this method in an asynchronous manner call WriteFileAsync instead. When the method completes (or an error is encountered) the WriteFileCompleted event will fire.

 
 
Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Cache 2020 .NET Edition - Version 20.0 [Build 7647]