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.backend.dt

Intermediate representation for static data
Compiler implementation of theD programming language.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcehttps://github.com/dlang/dmd/blob/master/src/dmd/backend/dt.d

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

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/src/dmd/backend/dt.d

nothrow @nogc @trusted voiddt_free(dt_t*dt);
Free a data definition struct.
nothrow @nogc @safe voiddt_term();
Free free list.
nothrow @nogc @safe voiddtpatchoffset(dt_t*dt, uintoffset);
nothrow @nogc @safe voidinit_common(Symbol*s);
Make a common block for s.
nothrow @nogc @safe uintdt_size(const(dt_t)*dtstart);
Compute size of a dt
nothrow @nogc @safe booldtallzeros(const(dt_t)*dt);
Return true if dt is all zeros.
nothrow @nogc @safe booldtpointers(const(dt_t)*dtstart);
Return true if dt contains pointers (requires relocations).
nothrow @nogc @safe voiddt2common(dt_t**pdt);
Turn DT.azeros into DTcommon
structDtBuilder;
nothrow @safe voidcheckInitialized();
Useful for checking if DtBuilder got initialized.
nothrow @safe voidprint();
Print state of DtBuilder for debugging.
nothrow @safe dt_t*finish();
Finish and return completed data structure.
nothrow @safe voidnbytes(const(char)[]ptr);

nothrow @trusted voidnbytes(const(ubyte)[]data);
Append data represented by ptr[0..size]
nothrow @trusted voidabytes(tym_tty, uintoffset, const(char)[]data, uintnzeros, ubyte_align);
Write a reference todata withnzeros zero bytes at the end.
Parameters:
tym_ttypointer type
uintoffsetto be added to offset of data generated
const(char)[]datadata to write
uintnzerosnumber of zero bytes to add to the end
ubyte_alignlog2() of byte alignment of pointed-to data
nothrow @trusted voiddword(intvalue);
Write 4 bytes of value.
nothrow @trusted voidsize(ulongvalue);
Write a size_t value.
nothrow @safe voidnzeros(size_tsize);
Write a bunch of zeros
nothrow @trusted voidxoff(Symbol*s, uintoffset, tym_tty);
Write a reference to s+offset
nothrow @safe voidxoff(Symbol*s, uintoffset);
Create reference to s+offset
nothrow @trusted dt_t*xoffpatch(Symbol*s, uintoffset, tym_tty);
Like xoff(), but returns handle with which to patch 'offset' value.
nothrow @safe Symbol*dtoff(dt_t*dt, uintoffset);
Create a reference to another dt.
Returns:
the internal symbol used for the other dt
nothrow @trusted voidcoff(uintoffset);
Write reference to offset in code segment.
nothrow @safe voidcat(dt_t*dt);
Append dt to data.
nothrow @safe voidcat(ref DtBuilderdtb);
Append dtb to data.
nothrow @trusted voidrepeat(dt_t*dt, size_tcount);
Repeat a list of dt_t's count times.
nothrow @safe uintlength();
Return size of data.
nothrow @safe boolisZeroLength();
Return true if size of data is 0.
nothrow @nogc @safe dt_t*dt_get_nzeros(uintn);
Temporary hack to initialize a dt_t* for C.
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 00:05:12 2026

[8]ページ先頭

©2009-2026 Movatter.jp