Download and extract from the official website.
Download and extract from the official website.
Delete the sdk/default/openharmony/native/llvm directory in Command Line Tools and replace it with the newly downloaded version.
| #ifndef __CircularBuffer_H__ | |
| #define __CircularBuffer_H__ | |
| //****************************************************************************** | |
| #include <atomic> | |
| #include <climits> | |
| template <class T, unsigned long N> | |
| class CCircularBuffer { | |
| private: | |
| static constexpr auto MODULO = ULONG_MAX - (ULONG_MAX % N); |
| #ifndef __SYSCALL_H__ | |
| #define __SYSCALL_H__ | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| long int do_syscall(long int sys_no, ...); | |
| #ifdef __cplusplus |
| #!/usr/bin/env python3 | |
| import socket | |
| UDP_IP = "0.0.0.0" | |
| UDP_PORT = 987 | |
| sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) | |
| sock.bind((UDP_IP, UDP_PORT)) | |
| while True: |
| #include <memory> | |
| #include <functional> | |
| #include <list> | |
| namespace zero { | |
| namespace promise { | |
| template<typename Result, typename Reason> | |
| class Promise; | |
| template<typename T> |
Download and extract from the official website.
Download and extract from the official website.
Delete the sdk/default/openharmony/native/llvm directory in Command Line Tools and replace it with the newly downloaded version.