This repository has been archived on 2026-04-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
original-mcpe-0.6.1/handheld/project/lib_projects/raknet/jni/RaknetSources/IncrementalReadInterface.h
2026-04-01 23:13:15 +02:00

29 lines
1002 B
C++

#ifndef __INCREMENTAL_READ_INTERFACE_H
#define __INCREMENTAL_READ_INTERFACE_H
#include "FileListNodeContext.h"
#include "Export.h"
namespace RakNet
{
class RAK_DLL_EXPORT IncrementalReadInterface
{
public:
IncrementalReadInterface() {}
virtual ~IncrementalReadInterface() {}
/// Read part of a file into \a destination
/// Return the number of bytes written. Return 0 when file is done.
/// \param[in] filename Filename to read
/// \param[in] startReadBytes What offset from the start of the file to read from
/// \param[in] numBytesToRead How many bytes to read. This is also how many bytes have been allocated to preallocatedDestination
/// \param[out] preallocatedDestination Write your data here
/// \return The number of bytes read, or 0 if none
virtual unsigned int GetFilePart( const char *filename, unsigned int startReadBytes, unsigned int numBytesToRead, void *preallocatedDestination, FileListNodeContext context);
};
} // namespace RakNet
#endif