MonoPosixHelper.h 768 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <stdint.h>
  3. #include "il2cpp-config.h"
  4. #include "il2cpp-object-internals.h"
  5. extern "C"
  6. {
  7. struct ZStream;
  8. IL2CPP_EXPORT intptr_t CreateZStream(int32_t compress, uint8_t gzip, Il2CppMethodPointer func, intptr_t gchandle);
  9. IL2CPP_EXPORT int32_t CloseZStream(intptr_t zstream);
  10. IL2CPP_EXPORT int32_t Flush(intptr_t zstream);
  11. IL2CPP_EXPORT int32_t ReadZStream(intptr_t zstream, intptr_t buffer, int32_t length);
  12. IL2CPP_EXPORT int32_t WriteZStream(intptr_t zstream, intptr_t buffer, int32_t length);
  13. IL2CPP_EXPORT extern intptr_t CreateNLSocket();
  14. IL2CPP_EXPORT extern int32_t ReadEvents(intptr_t sock, intptr_t buffer, int32_t count, int32_t size);
  15. IL2CPP_EXPORT extern intptr_t CloseNLSocket(intptr_t sock);
  16. }