Class Base_Object
Abstract type, providing the basic methods supported by most objects,
inherits from __cpp_obj.
-
Base_Object.__tbx_baseclass
-
Get this object cpp baseclass, mostly Layer or Packet. This is an opaque value.
-
Base_Object:__concat ()
-
Concatenate two objects into a Packet
Returns:
Packet
Usage:
pkt = IP / TCP / raw("Hello World!")
-
Base_Object:__add ()
-
Same than __concat
See also:
-
Base_Object:__div ()
-
Same than __concat
See also:
-
Base_Object:__tostring ()
-
Same than print
See also:
-
Base_Object:size ()
-
Get the number of bytes in this layer
Returns:
num
byte_count
-
Base_Object:print ()
-
Return the textual representation of the object.
Returns:
string
See also:
-
Base_Object:hexdump ()
-
Return the Hexdacimal representation of the object.
Returns:
string