MALLOC in English translation

Examples of using Malloc in Chinese and their translations into English

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
C++中new和delete是对内存分配的运算符,取代了C中的malloc和free。
New and delete replace the C usage of malloc and free.
最常见的是malloc()函数,它返回的void*类型。
The pointer so returned by the Malloc() function is of the void type.
不必强制转换malloc的结果,因为它返回void*,并且void*可以指向任何数据类型。
It is not mandatory to cast the results of malloc, since it returns void*, and a void* can be pointed to any datatype.
同样的,和垃圾回收机制改进了malloc和free一样,我们发现goroutine和channel改进了基于锁机制的并发。
In the same way that garbage collectors improve upon malloc and free, we found that goroutines and channels improve upon the lock-based approach to concurrency.
因此,从malloc()/free()的早期实现中分配是从堆中分配的。
For that reason, allocating from early implementations of malloc()/free() was allocation from a heap.
理由:内存分配运算符比如malloc以及garbagecollectors通常伴有不可预测的行为,这些行为会严重影响性能。
The reason is simple: memory allocators, such as malloc, and garbage collectors often have unpredictable behavior that can significantly impact performance.
在C中,堆是经由malloc()和其它相关函数来访问的。
In C, the heap is accessed via malloc() and other related functions.
附带地,new操作符还提供了胜过malloc()的新特性:.
Incidentally, the new operator offers additional advantages over malloc().
在C语言中,这种不安全的转换最常见的应用之一,是将malloc()的结果赋予一个合适的指针。
One of the most common uses of this unsafe conversion in C is to assign the result of malloc() to a suitable pointer.
像C这样的语言有低级的内存管理原语,如malloc()和free()。
Low-level languages, like C, have low-level memory management primitives like malloc() and free().
像C这样的编程语言,具有低级内存管理原语,如malloc()和free()。
Low-level languages, like C, have low-level memory management primitives like malloc() and free().
更新二:感谢GitHub用户ghswa贡献了我忘记的一些malloc()的空指针检查。
Edit 2: Thanks to user ghswa on GitHub for contributing some null checks for malloc() that I forgot.
而“分配”则意味着手工的内存管理,你必须且不得不重新实现malloc()函数。
And“allocation” means manual memory management, you essentially have to reimplement the malloc() function.
如果size为0,则malloc()返回NULL,或返回一个唯一的指针值,稍后可以成功传递给free()。
If nmemb or size is 0, then calloc() returns either NULL, or a unique pointer value that can later be successfully passed to free().
它们调用malloc或free。
Call malloc and free.
它们调用malloc或free。
They call malloc or free.
简单来说,就是malloc与free。
This is gonna define malloc and free.
OpenBSD的malloc支持保护页,如前所述。
OpenBSD's malloc implementation supports guard pages, as noted earlier.
C-我输入malloc的结果吗??
Do I cast the result of malloc?
New/delete与malloc()/free()的区别??
What is the difference between new/delete and malloc(), free()?
Results: 101, Time: 0.0151

Top dictionary queries

Chinese - English