Browse docspacket.raw_read
On this page
API method

packet.raw_read

Reads a typed value from the whole IP packet at an absolute offset, using the same type names as packet.read.

Syntax

Atlas Script
packet.raw_read(type, offset)

Parameters

type
Numeric value type: "u8", "i8", "u16", "i16", "u32", "i32", "f32", or "f64", with an optional "be" suffix for big-endian.
offset
Byte offset into the packet. Payload-relative for packet.* methods, and absolute (whole IP packet) for the raw_* variants.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Reads a typed value from the whole IP packet at an absolute offset, using the same type names as packet.read. Returns null when the value would run past the end.

Examples

Usage pattern
// Replace type, offset with values described above.
packet.raw_read(type, offset);
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.