Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

dmd.root.region

Region storage allocator implementation.
Authors:
Walter Bright
License:
Boost License 1.0

Sourceroot/region.d

Documentationhttps://dlang.org/phobos/dmd_root_region.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/root/region.d

structRegion;
Simple region storage allocator.
nothrow void*malloc(size_tnbytes);
Allocate nbytes. Aborts on failure.
Parameters:
size_tnbytesnumber of bytes to allocate, can be 0, must be <= than MaxAllocSize
Returns:
allocated data, null for nbytes==0
pure nothrow @nogc @safe RegionPossavePos();
Return stack position for allocations in this region.
Returns:
an opaque struct to be passed torelease()
pure nothrow @nogc @safe voidrelease(RegionPospos);
Release the memory that was allocated after the respective call tosavePos().
Parameters:
RegionPosposposition returned bysavePos()
pure nothrow @nogc boolcontains(void*p);
If pointer points into Region.
Parameters:
void*ppointer to check
Returns:
true if it points into the region
pure nothrow @nogc @safe size_tsize();
Returns:
size of Region
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 00:04:46 2026

[8]ページ先頭

©2009-2026 Movatter.jp