View source code
Display the source code in dmd/backend/dt.d from which this page was generated on github.
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 using local clone.

Struct dmd.backend.dt.DtBuilder

struct DtBuilder ;

Methods

NameDescription
abytes (ty, offset, size, ptr, nzeros, _align) Write a reference to the data ptr[0..size+nzeros]
cat (dt) Append dt to data.
cat (dtb) Append dtb to data.
checkInitialized () Useful for checking if DtBuilder got initialized.
coff (offset) Write reference to offset in code segment.
dtoff (dt, offset) Create a reference to another dt.
dword (value) Write 4 bytes of value.
finish () Finish and return completed data structure.
isZeroLength () Return true if size of data is 0.
length () Return size of data.
nbytes (size, ptr) Append data represented by ptr[0..size]
nzeros (size) Write a bunch of zeros
print () Print state of DtBuilder for debugging.
repeat (dt, count) Repeat a list of dt_t's count times.
size (value) Write a size_t value.
xoff (s, offset, ty) Write a reference to s+offset
xoff (s, offset) Create reference to s+offset
xoffpatch (s, offset, ty) Like xoff(), but returns handle with which to patch 'offset' value.

Authors

Walter Bright

License

Boost License 1.0