Browse docspacket.raw_set_byte
On this page
API method

packet.raw_set_byte

Writes one byte of the whole IP packet at an absolute offset.

Syntax

Atlas Script
packet.raw_set_byte(offset, value)

Parameters

offset
Byte offset into the packet. Payload-relative for packet.* methods, and absolute (whole IP packet) for the raw_* variants.
value
Value written, converted, or evaluated by this method. Its required type and range are described in Remarks.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Writes one byte of the whole IP packet at an absolute offset. The value wraps to 0-255; an offset past the end does nothing.

Examples

Usage pattern
// Replace offset, value with values described above.
packet.raw_set_byte(offset, value);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.