FileOperations.h 935 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. /// \file FileOperations.h
  11. ///
  12. #include "NativeFeatureIncludes.h"
  13. #if _RAKNET_SUPPORT_FileOperations==1
  14. #ifndef __FILE_OPERATIONS_H
  15. #define __FILE_OPERATIONS_H
  16. #include "Export.h"
  17. bool RAK_DLL_EXPORT WriteFileWithDirectories( const char *path, char *data, unsigned dataLength );
  18. bool RAK_DLL_EXPORT IsSlash(unsigned char c);
  19. void RAK_DLL_EXPORT AddSlash( char *input );
  20. void RAK_DLL_EXPORT QuoteIfSpaces(char *str);
  21. bool RAK_DLL_EXPORT DirectoryExists(const char *directory);
  22. unsigned int RAK_DLL_EXPORT GetFileLength(const char *path);
  23. #endif
  24. #endif // _RAKNET_SUPPORT_FileOperations
粤ICP备19079148号