- 浏览: 220941 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
dysking:
SWT 和 JFace -
wangyuhfut:
东西不少啊。学习中。。。
一个比较好、中文说明的emacs配置文件 1 -
pacocai:
呵呵!学习,学习~~~不过要说编辑器的话个人更喜欢用VIM,比 ...
一个比较好、中文说明的emacs配置文件 1 -
zhf1zhf2:
这两百多个记起来也不容易啊
英国人是这样背的! -
regex:
试了两次,都是乱码,版本是23.1.1,看来不适合
汉化 Emacs 菜单
Jump to: memory GC enable disable collect minimize BlkAttr FINALIZE NO_SCAN NO_MOVE BlkInfo getAttr setAttr clrAttr malloc calloc realloc extend reserve free addrOf sizeOf query addRoot addRange removeRoot removeRange
$(DDOC_SECTIONS The memory module provides an interface to the garbage collector and to any other OS or API-level memory management facilities.
$(DDOC_LICENSE struct GC;
This struct encapsulates all garbage collection functionality for the D programming language.
static void enable();
Enables automatic garbage collection behavior if collections have previously been suspended by a call to disable. This function is reentrant, and must be called once for every call to disable before automatic collections are enabled.
static void disable();
Disables automatic garbage collections performed to minimize the process footprint. Collections may continue to occur in instances where the implementation deems necessary for correct program behavior, such as during an out of memory condition. This function is reentrant, but enable must be called once for each call to disable.
static void collect();
Begins a full collection. While the meaning of this may change based on the garbage collector implementation, typical behavior is to scan all stack segments for roots, mark accessible memory blocks as alive, and then to reclaim free space. This action may need to suspend all running threads for at least part of the collection process.
static void minimize();
Indicates that the managed memory space be minimized by returning free physical memory to the operating system. The amount of free memory returned depends on the allocator design and on program behavior.
enum BlkAttr;
Elements for a bit field representing memory block attributes. These are manipulated via the getAttr, setAttr, clrAttr functions.
FINALIZE
Finalize the data in this block on collect.
NO_SCAN
Do not scan through this block on collect.
NO_MOVE
Do not move this memory block on collect.
alias BlkInfo;
Contains aggregate information about a block of managed memory. The purpose of this struct is to support a more efficient query style in instances where detailed information is needed.
base = A pointer to the base of the block in question. size = The size of the block, calculated from base. attr = Attribute bits set on the memory block.
static uint getAttr(void* p);
Returns a bit field representing all block attributes set for the memory referenced by p. If p references memory not originally allocated by this garbage collector, points to the interior of a memory block, or if p is null, zero will be returned.
Parameters:
void* p A pointer to the root of a valid memory block or to null.
Returns:
A bit field containing any bits set for the memory block referenced by p or zero on error.
static uint setAttr(void* p, uint a);
Sets the specified bits for the memory references by p. If p references memory not originally allocated by this garbage collector, points to the interior of a memory block, or if p is null, no action will be performed.
Parameters:
void* p A pointer to the root of a valid memory block or to null.
uint a A bit field containing any bits to set for this memory block.
The result of a call to getAttr after the specified bits have been set.
static uint clrAttr(void* p, uint a);
Clears the specified bits for the memory references by p. If p references memory not originally allocated by this garbage collector, points to the interior of a memory block, or if p is null, no action will be performed.
Parameters:
void* p A pointer to the root of a valid memory block or to null.
uint a A bit field containing any bits to clear for this memory block.
Returns:
The result of a call to getAttr after the specified bits have been cleared.
static void* malloc(size_t sz, uint ba = 0);
Requests an aligned block of managed memory from the garbage collector. This memory may be deleted at will with a call to free, or it may be discarded and cleaned up automatically during a collection run. If allocation fails, this function will call onOutOfMemory which is expected to throw an OutOfMemoryException.
Parameters:
size_t sz The desired allocation size in bytes.
uint ba A bitmask of the attributes to set on this block.
Returns:
A reference to the allocated memory or null if insufficient memory is available.
Throws:
OutOfMemoryException on allocation failure.
static void* calloc(size_t sz, uint ba = 0);
Requests an aligned block of managed memory from the garbage collector, which is initialized with all bits set to zero. This memory may be deleted at will with a call to free, or it may be discarded and cleaned up automatically during a collection run. If allocation fails, this function will call onOutOfMemory which is expected to throw an OutOfMemoryException.
Parameters:
size_t sz The desired allocation size in bytes.
uint ba A bitmask of the attributes to set on this block.
Returns:
A reference to the allocated memory or null if insufficient memory is available.
Throws:
OutOfMemoryException on allocation failure.
static void* realloc(void* p, size_t sz, uint ba = 0);
If sz is zero, the memory referenced by p will be deallocated as if by a call to free. A new memory block of size sz will then be allocated as if by a call to malloc, or the implementation may instead resize the memory block in place. The contents of the new memory block will be the same as the contents of the old memory block, up to the lesser of the new and old sizes. Note that existing memory will only be freed by realloc if sz is equal to zero. The garbage collector is otherwise expected to later reclaim the memory block if it is unused. If allocation fails, this function will call onOutOfMemory which is expected to throw an OutOfMemoryException. If p references memory not originally allocated by this garbage collector, or if it points to the interior of a memory block, no action will be taken. If ba is zero (the default) and p references the head of a valid, known memory block then any bits set on the current block will be set on the new block if a reallocation is required. If ba is not zero and p references the head of a valid, known memory block then the bits in ba will replace those on the current memory block and will also be set on the new block if a reallocation is required.
Parameters:
void* p A pointer to the root of a valid memory block or to null.
size_t sz The desired allocation size in bytes.
uint ba A bitmask of the attributes to set on this block.
Returns:
A reference to the allocated memory on success or null if sz is zero. On failure, the original value of p is returned.
Throws:
OutOfMemoryException on allocation failure.
static size_t extend(void* p, size_t mx, size_t sz);
Requests that the managed memory block referenced by p be extended in place by at least mx bytes, with a desired extension of sz bytes. If an extension of the required size is not possible, if p references memory not originally allocated by this garbage collector, or if p points to the interior of a memory block, no action will be taken.
Parameters:
size_t mx The minimum extension size in bytes.
size_t sz The desired extension size in bytes.
Returns:
The size in bytes of the extended memory block referenced by p or zero if no extension occurred.
static size_t reserve(size_t sz);
Requests that at least sz bytes of memory be obtained from the operating system and marked as free.
Parameters:
size_t sz The desired size in bytes.
Returns:
The actual number of bytes reserved or zero on error.
static void free(void* p);
Deallocates the memory referenced by p. If p is null, no action occurs. If p references memory not originally allocated by this garbage collector, or if it points to the interior of a memory block, no action will be taken. The block will not be finalized regardless of whether the FINALIZE attribute is set. If finalization is desired, use delete instead.
Parameters:
void* p A pointer to the root of a valid memory block or to null.
static void* addrOf(void* p);
Returns the base address of the memory block containing p. This value is useful to determine whether p is an interior pointer, and the result may be passed to routines such as sizeOf which may otherwise fail. If p references memory not originally allocated by this garbage collector, if p is null, or if the garbage collector does not support this operation, null will be returned.
Parameters:
void* p A pointer to the root or the interior of a valid memory block or to null.
Returns:
The base address of the memory block referenced by p or null on error.
static size_t sizeOf(void* p);
Returns the true size of the memory block referenced by p. This value represents the maximum number of bytes for which a call to realloc may resize the existing block in place. If p references memory not originally allocated by this garbage collector, points to the interior of a memory block, or if p is null, zero will be returned.
Parameters:
void* p A pointer to the root of a valid memory block or to null.
Returns:
The size in bytes of the memory block referenced by p or zero on error.
static BlkInfo query(void* p);
Returns aggregate information about the memory block containing p. If p references memory not originally allocated by this garbage collector, if p is null, or if the garbage collector does not support this operation, BlkInfo.init will be returned. Typically, support for this operation is dependent on support for addrOf.
Parameters:
void* p A pointer to the root or the interior of a valid memory block or to null.
Returns:
Information regarding the memory block referenced by p or BlkInfo.init on error.
static void addRoot(void* p);
Adds the memory address referenced by p to an internal list of roots to be scanned during a collection. If p is null, no operation is performed.
Parameters:
void* p A pointer to a valid memory address or to null.
static void addRange(void* p, size_t sz);
Adds the memory block referenced by p and of size sz to an internal list of ranges to be scanned during a collection. If p is null, no operation is performed.
Parameters:
void* p A pointer to a valid memory address or to null.
size_t sz The size in bytes of the block to add. If sz is zero then the no operation will occur. If p is null then sz must be zero.
static void removeRoot(void* p);
Removes the memory block referenced by p from an internal list of roots to be scanned during a collection. If p is null or does not represent a value previously passed to add(void*) then no operation is performed.
p = A pointer to a valid memory address or to null.
static void removeRange(void* p);
Removes the memory block referenced by p from an internal list of ranges to be scanned during a collection. If p is null or does not represent a value previously passed to add(void*, size_t) then no operation is performed.
Parameters:
void* p A pointer to a valid memory address or to null.
发表评论
-
D2 的 range设计
2009-04-23 09:03 1369betty_betty2008 2009-04-08 ... -
std.range (2.030)
2009-04-22 12:03 15345.19 15点 更新 (2.030 翻译完成,格式已调整) ... -
std.encoding
2009-04-22 11:56 863Jump to: INVALID_SEQUENCE Asci ... -
std.array
2009-04-21 18:07 1041机器翻译,还未校对,仅供参考 Jump to: empty ... -
phobos 2.015
2008-06-20 14:03 1081这几天摸到鼠标就有点恶心了,听说是患了鼠标手了,一查还真是, ... -
std.boxer
2008-06-16 22:26 987Jump to: TypeClass Bool Integer ... -
std.bitmanip
2008-06-16 22:24 943Jump to: bitfields FloatRep Dou ... -
std.bind
2008-06-16 22:22 1293Jump to: bind _0 _1 _2 _3 _4 _5 ... -
std.base64
2008-06-16 22:21 1180Jump to: base64 Base64Exception ... -
std.algorithm 算法--1(2.030)
2008-06-16 22:20 15426.1 20 点 更新 5.21 19点 更新 ... -
std.cstream
2008-05-04 23:59 1306链接没有维护 The std.cstream module ... -
Phobos Runtime Library
2008-05-04 00:43 1214(5.7更新) 注:看过 D ...
相关推荐
文件名:xlsx.core.min.js,xlsx.core.min.js免费下载,可以使用此js在前端导出xlsx表格数据
《xlsx.core.min插件:纯JS解析Excel文件的利器》 在现代Web开发中,处理数据已经成为不可或缺的一部分,尤其在数据分析、报表展示等领域,Excel文件的导入与导出更是常见需求。Xlsx.core.min插件就是一款专为...
Numpy 是 Python 中用于数值计算的核心模块,尤其在大气科学和大数据处理中有着广泛的应用。它的出现弥补了 Python 内置 array 模块在多维数组处理和运算上的不足,利用底层 C 语言的高效执行,提升了计算速度,并且...
Visual GC插件(org-graalvm-visualvm-modules-visualgc.nbm)
Microsoft.Office.Core.dll和Microsoft.Office.Interop.Excel.dll Microsoft.Office.Core.dll和Microsoft.Office.Interop.Excel.dll
【免费】xlsx.core.min.js; 【cdn地址】https://cdn.bootcss.com/xlsx/0.12.7/xlsx.core.min.js
标题中的"DotNetCore.1.0.0-VS2015Tools.Preview2.0.1和2.0.3.zip"指的是.NET Core开发工具的早期版本,特别是针对Visual Studio 2015的预览版。.NET Core是微软推出的一个开源且跨平台的开发框架,用于构建各种应用...
SharpCifs.std Xamarin和.NET Core就绪,SMB / CIFS(Windows共享文件夹)访问库。 这是到.NET Standard的端口。 项目地点: Xamarin / .NET Core対応のSMB / CIFS(Windows共有)アクセスライブラリです。 を.NET...
Microsoft.Office.Core.dll 下载. Microsoft.Office.Interop.Excel.Workbooks 可以用来导出文档相关的内容, Microsoft.Office.Interop.Excel.Workbooks workbooks = xlApp.Workbooks; Microsoft.Office.Interop....
xlsx.core.min.js,前端上传获取excel表格数据,导入代码教程可直接百度,非常简单实用,亲测可用
struts2-core-2.0.1.jar, struts2-core-2.0.11.1.jar, struts2-core-2.0.11.2.jar, struts2-core-2.0.11.jar, struts2-core-2.0.12.jar, struts2-core-2.0.14.jar, struts2-core-2.0.5.jar, struts2-core-2.0.6.jar,...
jquery.ui.core.js,jqueryUi所需的js库
Qt5Core.dll是Qt框架的核心库,它是Qt5系列中的一个关键组件,为开发者提供了大量用于构建跨平台应用程序的基础功能。这个动态链接库文件包含了Qt框架的基本类和接口,使得开发者能够利用Qt的强大功能来创建丰富的...
《Spring框架核心模块——org.springframework.core.jar深度解析》 在Java世界中,Spring框架以其卓越的灵活性、可扩展性和模块化设计,成为了企业级应用开发的首选。其中,`org.springframework.core.jar`是Spring...
《Microsoft.Office.Core.DLL:深入理解Office插件的开发与应用》 在现代办公环境中,Microsoft Office套件的广泛使用催生了对个性化和扩展功能的需求,这就催生了Microsoft.Office.Core.DLL的存在。作为Office插件...
该文件是对 Microsoft.Office.Core.dll DLL文件的简介 运行环境:未知 软件语言:简体中文 适合系统:X86系统 软件大小:196608 B 更新时间:2011-10-21 10:36:30 文件版本:2.2.0.0
org.eclipse.core.runtime.compatibility.auth依赖jar,解决svn某种情况下不能保存密码的问题
excel文件下载xlsx.core.min.js