Class Raw
The Raw Layer, inherits from Base_Object
Methods
Raw:new ([data[, bytes]]) | Constructor for a Raw Layer |
Raw:data ([data]) | Get/Set the payload data for this layer |
Raw:bytes ([bytes]) | Get/Set the payload bytes for this layer |
Methods
- Raw:new ([data[, bytes]])
-
Constructor for a Raw Layer
Parameters:
- data string the data for this layer. (optional)
- bytes table the data for this layer, as byte values. (optional)
Returns:
-
Raw
a new Raw object
Usage:
Raw.new('Hello World!')
- Raw:data ([data])
-
Get/Set the payload data for this layer
Parameters:
- data string (optional)
Returns:
-
string
data
- Raw:bytes ([bytes])
-
Get/Set the payload bytes for this layer
Parameters:
- bytes table a list of bytes (optional)
Returns:
-
table
bytes