Init
This commit is contained in:
43
Source/include/slikenet/IncrementalReadInterface.h
Normal file
43
Source/include/slikenet/IncrementalReadInterface.h
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Original work: Copyright (c) 2014, Oculus VR, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the RakNet Patents.txt file in the same directory.
|
||||
*
|
||||
*
|
||||
* Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
|
||||
*
|
||||
* This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
|
||||
* license found in the license.txt file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#ifndef __INCREMENTAL_READ_INTERFACE_H
|
||||
#define __INCREMENTAL_READ_INTERFACE_H
|
||||
|
||||
#include "FileListNodeContext.h"
|
||||
#include "Export.h"
|
||||
|
||||
namespace SLNet
|
||||
{
|
||||
|
||||
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 SLNet
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user