benilla-re systems structs docs

WowConnection::AllocSendBuffer

function · net · primitive

Address
0x5b5450 · 325 bytes, up to 0x5b5594
Signature
void * __thiscall (WowConnection *this, const void *data, int32_t len, uint8_t raw)
Meaning
Allocates a buffer of data behind a big-endian length: 2 bytes to 0x7fff, else 3 with 0x80 set; raw adds no header
Confidence
verified, proof one
Finding
net/wire#size-header-copies
Test
net::header_encode

Finding: Size header copies in net: the wire

Three live copies of the send rule write the same bytes. Send (0x5b5630) with headroom of 3 or more writes the header in place, the copy above. With less it copies the message into a node and writes the header there (0x5b577a). AllocSendBuffer (0x5b5450) writes it at 0x5b5495 for packets of 100,000 bytes and more and for the delayed path. A fourth copy, at 0x5b5b7f in SendPair (0x5b5af0), is unreached. Send leaves before any of them for a size of 0 or less, so N is positive there.

The derivation is in the doc.

Callers 4

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.