DtBuilder

Members

Functions

abytes
void abytes(tym_t ty, uint offset, uint size, const(char)* ptr, uint nzeros)

Write a reference to the data ptr[0..size+nzeros]

cat
void cat(dt_t* dt)

Append dt to data.

cat
void cat(ref DtBuilder dtb)

Append dtb to data.

coff
void coff(uint offset)

Write reference to offset in code segment.

dtoff
Symbol* dtoff(dt_t* dt, uint offset)

Create a reference to another dt.

dword
void dword(int value)

Write 4 bytes of value.

finish
dt_t* finish()

Finish and return completed data structure.

isZeroLength
bool isZeroLength()

Return true if size of data is 0.

length
uint length()

Return size of data.

nbytes
void nbytes(uint size, const(char)* ptr)

Append data represented by ptr[0..size]

nzeros
void nzeros(uint size)

Write a bunch of zeros

repeat
void repeat(dt_t* dt, size_t count)

Repeat a list of dt_t's count times.

size
void size(ulong value)

Write a size_t value.

xoff
void xoff(Symbol* s, uint offset, tym_t ty)

Write a reference to s+offset

xoff
void xoff(Symbol* s, uint offset)

Create reference to s+offset

xoffpatch
dt_t* xoffpatch(Symbol* s, uint offset, tym_t ty)

Like xoff(), but returns handle with which to patch 'offset' value.

Meta