ReadFile Method

Reads the specified part of a cached file.

Syntax

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

Remarks

This method reads data from the cached file identified by FileId into the specified Buffer. The cached file must be opened using OpenFile before it can be read from.

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

.NET Standard Notes

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

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