Module antiparser :: Class apObject
[frames | no frames]

Class apObject

Known Subclasses:
apChar, apKeywords, apLong, apShort, apString

Parent antiparser data object class -- not be invoked directly.
Method Summary
  __init__(self)
Constructor that is called when the class is instantiated.
  display(self)
Print the data object.
  getByteOrder(self)
Returns the byteorder property of the data object.
  getContent(self)
Returns the content of the data object.
  getDebug(self)
Returns the debugging status of the data object.
  getMaxSize(self)
Gets the maxsize property of the data object.
  getMinSize(self)
Returns the minsize property of the data object.
  getMode(self)
Returns the mode that is currently enabled for the data object.
  getOptional(self)
Return the optional property value of the data object.
  getStatic(self)
Returns the static property value of the data object.
  setByteOrder(self, byteorder)
Sets the byteorder property of the data object to "big" or "little" endian.
  setContent(self, content)
Sets the content of the data object.
  setDebug(self, debug)
Sets the debugging status to True or False.
  setMaxSize(self, maxsize)
Sets the maxsize property of the data object to an integer.
  setMinSize(self, minsize)
Sets the minsize property of the data object to an integer.
  setMode(self, mode)
Sets the mode for the data object.
  setOptional(self, optional)
Sets the optional property of the data object to True or False.
  setStatic(self, static)
Sets the static property of the data object to True or False.

Method Details

__init__(self)
(Constructor)

Constructor that is called when the class is instantiated.

display(self)

Print the data object.

getByteOrder(self)

Returns the byteorder property of the data object.

getContent(self)

Returns the content of the data object.

getDebug(self)

Returns the debugging status of the data object.

getMaxSize(self)

Gets the maxsize property of the data object.

getMinSize(self)

Returns the minsize property of the data object.

getMode(self)

Returns the mode that is currently enabled for the data object.

getOptional(self)

Return the optional property value of the data object.

getStatic(self)

Returns the static property value of the data object.

setByteOrder(self, byteorder)

Sets the byteorder property of the data object to "big" or "little" endian.

byteorder determines the endianness of the data object. Valid values for byteorder are "big", "little", and None. byteorder defaults to None, which generally means that the native byteorder is used.

setContent(self, content)

Sets the content of the data object.

setDebug(self, debug)

Sets the debugging status to True or False. Defaults to False.

setMaxSize(self, maxsize)

Sets the maxsize property of the data object to an integer.

setMinSize(self, minsize)

Sets the minsize property of the data object to an integer.

setMode(self, mode)

Sets the mode for the data object.

mode represents various methods of permuting the data object. The user may wish to generate random objects of random size, within the bounds of the minsize and maxsize attributes. This is the default mode. Other modes may allow the user to generate data of incrementally larger sizes.

setOptional(self, optional)

Sets the optional property of the data object to True or False.

optional is a property that determines whether or not the content should be included in the antiparser in any given permutation. If optional is set to True, then there is a 50% chance in any given permutation that the content of the data object will be included in the antiparser payload. optional defaults to False, which means always include the content of the data object in the antiparser payload.

setStatic(self, static)

Sets the static property of the data object to True or False.

static is a property that determines whether or not the content should be randomly permuted by the antiparser. This allows for inclusion of static data in the antiparser. If this value is set to True, then the content will not be randomly permuted. static defaults to False, as the desired default behavior is to randomly permute the content of the data object.

Generated by Epydoc 2.1 on Wed Aug 17 09:02:50 2005 http://epydoc.sf.net
SourceForge.net Logo