/lvgl-latest/src/stdlib/ |
D | lv_mem.h | 36 size_t total_size; /**< Total heap size */ 37 size_t free_cnt; 38 size_t free_size; /**< Size of available memory */ 39 size_t free_biggest_size; 40 size_t used_cnt; 41 size_t max_used; /**< Max size of Heap memory used */ 60 lv_mem_pool_t lv_mem_add_pool(void * mem, size_t bytes); 69 void * lv_malloc(size_t size); 77 void * lv_calloc(size_t num, size_t size); 84 void * lv_zalloc(size_t size); [all …]
|
D | lv_string.h | 39 void * lv_memcpy(void * dst, const void * src, size_t len); 48 void lv_memset(void * dst, uint8_t v, size_t len); 57 void * lv_memmove(void * dst, const void * src, size_t len); 66 int lv_memcmp(const void * p1, const void * p2, size_t len); 73 static inline void lv_memzero(void * dst, size_t len) in lv_memzero() 83 size_t lv_strlen(const char * str); 92 size_t lv_strlcpy(char * dst, const char * src, size_t dst_size); 103 char * lv_strncpy(char * dst, const char * src, size_t dest_size); 129 int lv_strncmp(const char * s1, const char * s2, size_t len); 168 char * lv_strncat(char * dst, const char * src, size_t src_len);
|
D | lv_mem.c | 39 void * lv_malloc_core(size_t size); 40 void * lv_realloc_core(void * p, size_t new_size); 62 void * lv_malloc(size_t size) in lv_malloc() 92 void * lv_malloc_zeroed(size_t size) in lv_malloc_zeroed() 119 void * lv_calloc(size_t num, size_t size) in lv_calloc() 125 void * lv_zalloc(size_t size) in lv_zalloc() 139 void * lv_realloc(void * data_p, size_t new_size) in lv_realloc()
|
/lvgl-latest/src/stdlib/builtin/ |
D | lv_tlsf.h | 58 lv_tlsf_t lv_tlsf_create_with_pool(void * mem, size_t bytes); 63 lv_pool_t lv_tlsf_add_pool(lv_tlsf_t tlsf, void * mem, size_t bytes); 67 void * lv_tlsf_malloc(lv_tlsf_t tlsf, size_t bytes); 68 void * lv_tlsf_memalign(lv_tlsf_t tlsf, size_t align, size_t bytes); 69 void * lv_tlsf_realloc(lv_tlsf_t tlsf, void * ptr, size_t size); 70 size_t lv_tlsf_free(lv_tlsf_t tlsf, const void * ptr); 73 size_t lv_tlsf_block_size(void * ptr); 76 size_t lv_tlsf_size(void); 77 size_t lv_tlsf_align_size(void); 78 size_t lv_tlsf_block_size_min(void); [all …]
|
D | lv_tlsf.c | 57 …#define TLSF_FLS(n) ((n) & 0xffffffff00000000ull ? 32 + TLSF_FLS32((size_t)(n) >> 32) : TLSF_FLS32… 198 tlsf_decl int tlsf_fls_sizet(size_t size) in tlsf_fls_sizet() 298 tlsf_static_assert(sizeof(size_t) * CHAR_BIT >= 32); 299 tlsf_static_assert(sizeof(size_t) * CHAR_BIT <= 64); 326 size_t size; 339 static const size_t block_header_free_bit = 1 << 0; 340 static const size_t block_header_prev_free_bit = 1 << 1; 346 static const size_t block_header_overhead = sizeof(size_t); 349 static const size_t block_start_offset = 350 offsetof(block_header_t, size) + sizeof(size_t); [all …]
|
D | lv_sprintf_builtin.c | 121 typedef void (*out_fct_type)(char character, void * buffer, size_t idx, size_t maxlen); 130 static inline void _out_buffer(char character, void * buffer, size_t idx, size_t maxlen) in _out_buffer() 138 static inline void _out_null(char character, void * buffer, size_t idx, size_t maxlen) in _out_null() 148 static inline unsigned int _strnlen_s(const char * str, size_t maxsize) in _strnlen_s() 173 static size_t _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf… in _out_rev() 176 const size_t start_idx = idx; in _out_rev() 180 size_t i; in _out_rev() 202 static size_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, … in _ntoa_format() 256 static size_t _ntoa_long(out_fct_type out, char * buffer, size_t idx, size_t maxlen, unsigned long … in _ntoa_long() 260 size_t len = 0U; in _ntoa_long() [all …]
|
D | lv_string_builtin.c | 56 void * LV_ATTRIBUTE_FAST_MEM lv_memcpy(void * dst, const void * src, size_t len) in lv_memcpy() 118 void LV_ATTRIBUTE_FAST_MEM lv_memset(void * dst, uint8_t v, size_t len) in lv_memset() 148 void * LV_ATTRIBUTE_FAST_MEM lv_memmove(void * dst, const void * src, size_t len) in lv_memmove() 174 int lv_memcmp(const void * p1, const void * p2, size_t len) in lv_memcmp() 186 size_t lv_strlen(const char * str) in lv_strlen() 188 size_t i = 0; in lv_strlen() 194 size_t lv_strlcpy(char * dst, const char * src, size_t dst_size) in lv_strlcpy() 196 size_t i = 0; in lv_strlcpy() 207 char * lv_strncpy(char * dst, const char * src, size_t dst_size) in lv_strncpy() 209 size_t i; in lv_strncpy() [all …]
|
/lvgl-latest/src/libs/lodepng/ |
D | lodepng.h | 157 const unsigned char * in, size_t insize, 162 const unsigned char * in, size_t insize); 166 const unsigned char * in, size_t insize); 213 unsigned lodepng_encode_memory(unsigned char ** out, size_t * outsize, 218 unsigned lodepng_encode32(unsigned char ** out, size_t * outsize, 222 unsigned lodepng_encode24(unsigned char ** out, size_t * outsize, 262 const unsigned char * in, size_t insize, 330 size_t max_output_size; 334 unsigned(*custom_zlib)(unsigned char **, size_t *, 335 const unsigned char *, size_t, [all …]
|
D | lodepng.c | 78 static void * lodepng_malloc(size_t size) in lodepng_malloc() 87 static void * lodepng_realloc(void * ptr, size_t new_size) in lodepng_realloc() 101 void * lodepng_malloc(size_t size); 102 void * lodepng_realloc(void * ptr, size_t new_size); 128 const void * LODEPNG_RESTRICT src, size_t size) in lodepng_memcpy() 134 int value, size_t num) in lodepng_memset() 140 static size_t lodepng_strlen(const char * a) in lodepng_strlen() 146 return (size_t)(a - orig); in lodepng_strlen() 155 static int lodepng_addofl(size_t a, size_t b, size_t * result) in lodepng_addofl() 165 static int lodepng_mulofl(size_t a, size_t b, size_t * result) in lodepng_mulofl() [all …]
|
/lvgl-latest/src/stdlib/clib/ |
D | lv_string_clib.c | 38 void * LV_ATTRIBUTE_FAST_MEM lv_memcpy(void * dst, const void * src, size_t len) in lv_memcpy() 43 void LV_ATTRIBUTE_FAST_MEM lv_memset(void * dst, uint8_t v, size_t len) in lv_memset() 48 void * LV_ATTRIBUTE_FAST_MEM lv_memmove(void * dst, const void * src, size_t len) in lv_memmove() 53 int lv_memcmp(const void * p1, const void * p2, size_t len) in lv_memcmp() 58 size_t lv_strlen(const char * str) in lv_strlen() 63 size_t lv_strlcpy(char * dst, const char * src, size_t dst_size) in lv_strlcpy() 65 size_t src_len = strlen(src); in lv_strlcpy() 67 size_t copy_size = src_len < dst_size ? src_len : dst_size - 1; in lv_strlcpy() 74 char * lv_strncpy(char * dst, const char * src, size_t dest_size) in lv_strncpy() 89 int lv_strncmp(const char * s1, const char * s2, size_t len) in lv_strncmp() [all …]
|
/lvgl-latest/src/misc/ |
D | lv_lru.h | 45 size_t free_memory; 46 size_t total_memory; 47 size_t average_item_length; 48 size_t hash_table_size; 59 lv_lru_t * lv_lru_create(size_t cache_size, size_t average_length, lv_lru_free_cb_t value_free, 64 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… 66 lv_lru_res_t lv_lru_get(lv_lru_t * cache, const void * key, size_t key_size, void ** value); 68 lv_lru_res_t lv_lru_remove(lv_lru_t * cache, const void * key, size_t key_size);
|
/lvgl-latest/src/stdlib/rtthread/ |
D | lv_string_rtthread.c | 38 void * LV_ATTRIBUTE_FAST_MEM lv_memcpy(void * dst, const void * src, size_t len) in lv_memcpy() 43 void LV_ATTRIBUTE_FAST_MEM lv_memset(void * dst, uint8_t v, size_t len) in lv_memset() 48 void * LV_ATTRIBUTE_FAST_MEM lv_memmove(void * dst, const void * src, size_t len) in lv_memmove() 53 size_t lv_strlen(const char * str) in lv_strlen() 58 int lv_memcmp(const void * p1, const void * p2, size_t len) in lv_memcmp() 63 size_t lv_strlcpy(char * dst, const char * src, size_t dst_size) in lv_strlcpy() 65 size_t src_len = lv_strlen(src); in lv_strlcpy() 67 size_t copy_size = src_len < dst_size ? src_len : dst_size - 1; in lv_strlcpy() 74 char * lv_strncpy(char * dst, const char * src, size_t dest_size) in lv_strncpy() 89 int lv_strncmp(const char * s1, const char * s2, size_t len) in lv_strncmp() [all …]
|
/lvgl-latest/src/libs/thorvg/rapidjson/ |
D | filewritestream.h | 36 …FileWriteStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), buffer… in FileWriteStream() 47 void PutN(char c, size_t n) { in PutN() 48 size_t avail = static_cast<size_t>(bufferEnd_ - current_); in PutN() 54 avail = static_cast<size_t>(bufferEnd_ - current_); in PutN() 65 size_t result = std::fwrite(buffer_, 1, static_cast<size_t>(current_ - buffer_), fp_); in Flush() 66 if (result < static_cast<size_t>(current_ - buffer_)) { in Flush() 77 size_t Tell() const { RAPIDJSON_ASSERT(false); return 0; } in Tell() 79 size_t PutEnd(char*) { RAPIDJSON_ASSERT(false); return 0; } in PutEnd() 94 inline void PutN(FileWriteStream& stream, char c, size_t n) { in PutN()
|
D | stream.h | 84 inline void PutReserve(Stream& stream, size_t count) { in PutReserve() 97 inline void PutN(Stream& stream, Ch c, size_t n) { in PutN() 99 for (size_t i = 0; i < n; i++) in PutN() 126 size_t Tell() { return is_.Tell(); } in Tell() 130 size_t PutEnd(Ch* ch) { return is_.PutEnd(ch); } in PutEnd() 161 size_t Tell() const { return static_cast<size_t>(src_ - head_); } in Tell() 166 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in PutEnd() 196 size_t Tell() { return static_cast<size_t>(src_ - head_); } 202 size_t PutEnd(Ch* begin) { return static_cast<size_t>(dst_ - begin); } 205 Ch* Push(size_t count) { Ch* begin = dst_; dst_ += count; return begin; } [all …]
|
D | stringbuffer.h | 45 …GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocat… in stack_() 68 void Reserve(size_t count) { stack_.template Reserve<Ch>(count); } in Reserve() 69 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push() 70 Ch* PushUnsafe(size_t count) { return stack_.template PushUnsafe<Ch>(count); } in PushUnsafe() 71 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop() 82 size_t GetSize() const { return stack_.GetSize(); } in GetSize() 85 size_t GetLength() const { return stack_.GetSize() / sizeof(Ch); } in GetLength() 87 static const size_t kDefaultCapacity = 256; 100 inline void PutReserve(GenericStringBuffer<Encoding, Allocator>& stream, size_t count) { in PutReserve() 111 inline void PutN(GenericStringBuffer<UTF8<> >& stream, char c, size_t n) { in PutN()
|
D | istreamwrapper.h | 67 …BasicIStreamWrapper(StreamType &stream, char* buffer, size_t bufferSize) : stream_(stream), buffer… in RAPIDJSON_DIAG_OFF() 74 size_t Tell() const { return count_ + static_cast<size_t>(current_ - buffer_); } in RAPIDJSON_DIAG_OFF() 80 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 102 readCount_ = static_cast<size_t>(stream_.gcount()); in RAPIDJSON_DIAG_OFF() 111 size_t bufferSize_; in RAPIDJSON_DIAG_OFF() 114 size_t readCount_; in RAPIDJSON_DIAG_OFF() 115 size_t count_; //!< Number of characters read in RAPIDJSON_DIAG_OFF()
|
D | memorybuffer.h | 40 …GenericMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocat… in stack_() 47 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push() 48 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop() 54 size_t GetSize() const { return stack_.GetSize(); } in GetSize() 56 static const size_t kDefaultCapacity = 256; 64 inline void PutN(MemoryBuffer& memoryBuffer, char c, size_t n) { in PutN()
|
D | filereadstream.h | 44 …FileReadStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), bufferS… in RAPIDJSON_DIAG_OFF() 52 size_t Tell() const { return count_ + static_cast<size_t>(current_ - buffer_); } in RAPIDJSON_DIAG_OFF() 58 size_t PutEnd(Ch*) { RAPIDJSON_ASSERT(false); return 0; } in RAPIDJSON_DIAG_OFF() 85 size_t bufferSize_; in RAPIDJSON_DIAG_OFF() 88 size_t readCount_; in RAPIDJSON_DIAG_OFF() 89 size_t count_; //!< Number of characters read in RAPIDJSON_DIAG_OFF()
|
D | allocators.h | 86 void* Malloc(size_t size) { in Malloc() 92 void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) { in Realloc() 135 size_t capacity; //!< Capacity of the chunk in bytes (excluding the header itself). 136 size_t size; //!< Current size of allocated memory in bytes. 143 size_t refcount; 147 static const size_t SIZEOF_SHARED_DATA = RAPIDJSON_ALIGN(sizeof(SharedData)); 148 static const size_t SIZEOF_CHUNK_HEADER = RAPIDJSON_ALIGN(sizeof(ChunkHeader)); 159 …static const size_t kDefaultChunkCapacity = RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY; //!< Defau… 170 … MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) : 201 …MemoryPoolAllocator(void *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAlloc… [all …]
|
/lvgl-latest/src/libs/rlottie/ |
D | lv_rlottie_private.h | 37 size_t total_frames; 38 size_t current_frame; 39 size_t framerate; 41 size_t allocated_buffer_size; 42 size_t scanline_width; 44 size_t dest_frame;
|
/lvgl-latest/src/libs/barcode/ |
D | code128.h | 39 size_t code128_estimate_len(const char * s); 40 size_t code128_encode_gs1(const char * s, char * out, size_t maxlength); 41 size_t code128_encode_raw(const char * s, char * out, size_t maxlength);
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | stack.h | 41 …Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack… in Stack() 116 RAPIDJSON_FORCEINLINE void Reserve(size_t count = 1) { 123 RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) { 129 RAPIDJSON_FORCEINLINE T* PushUnsafe(size_t count = 1) { 138 T* Pop(size_t count) { in Pop() 178 size_t GetSize() const { return static_cast<size_t>(stackTop_ - stack_); } in GetSize() 179 size_t GetCapacity() const { return static_cast<size_t>(stackEnd_ - stack_); } in GetCapacity() 183 void Expand(size_t count) { in Expand() 185 size_t newCapacity; in Expand() 194 size_t newSize = GetSize() + sizeof(T) * count; in Expand() [all …]
|
D | biginteger.h | 45 BigInteger(const Ch* decimals, size_t length) : count_(1) { in BigInteger() 48 size_t i = 0; in BigInteger() 49 const size_t kMaxDigitPerIteration = 19; // 2^64 = 18446744073709551616 > 10^19 in BigInteger() 78 for (size_t i = 0; i < count_ - 1; i++) { 98 for (size_t i = 0; i < count_; i++) { 116 for (size_t i = 0; i < count_; i++) { 133 BigInteger& operator<<=(size_t shift) { 136 size_t offset = shift / kTypeBit; 137 size_t interShift = shift % kTypeBit; 146 for (size_t i = count_; i > 0; i--) [all …]
|
/lvgl-latest/src/libs/tjpgd/ |
D | tjpgd.h | 54 size_t dctr; /* Number of bytes available in the input buffer */ 84 size_t sz_pool; /* Size of memory pool (bytes available) */ 85 size_t (*infunc)(JDEC *, uint8_t *, size_t); /* Pointer to jpeg stream input function */ 92 JRESULT jd_prepare(JDEC * jd, size_t (*infunc)(JDEC *, uint8_t *, size_t), void * pool, size_t sz_p…
|
/lvgl-latest/src/libs/qrcode/ |
D | qrcodegen.h | 194 bool qrcodegen_encodeBinary(uint8_t dataAndTemp[], size_t dataLen, uint8_t qrcode[], 212 bool qrcodegen_encodeSegments(const struct qrcodegen_Segment segs[], size_t len, 231 bool qrcodegen_encodeSegmentsAdvanced(const struct qrcodegen_Segment segs[], size_t len, enum qrcod… 261 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars); 269 struct qrcodegen_Segment qrcodegen_makeBytes(const uint8_t data[], size_t len, uint8_t buf[]); 318 int qrcodegen_getMinFitVersion(enum qrcodegen_Ecc ecl, size_t dataLen);
|